Skip to content

Commit

Permalink
E2e appium/add splash animation step (#5748)
Browse files Browse the repository at this point in the history
* Added waitforsplashanimation steps to feature files

* Remove updated values from the ios config file

* Remove NetworkFlow background steps and update onboarding steps definition
  • Loading branch information
SamuelSalas authored Feb 10, 2023
1 parent 7a7c5cb commit 264a509
Show file tree
Hide file tree
Showing 17 changed files with 47 additions and 36 deletions.
4 changes: 2 additions & 2 deletions wdio.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const config = {
baseUrl: 'http://localhost',
//
// Default timeout for all waitFor* commands.
waitforTimeout: 120000,
waitforTimeout: 220000,
//
// Default timeout in milliseconds for request
// if browser driver or grid doesn't send response
Expand Down Expand Up @@ -202,7 +202,7 @@ export const config = {
// <string> (expression) only execute the features or scenarios with tags matching the expression
tagExpression: '',
// <number> timeout for step definitions
timeout: 210000,
timeout: 310000,
// <boolean> Enable this config to treat undefined definitions as warnings.
ignoreUndefinedDefinitions: false,
},
Expand Down
8 changes: 4 additions & 4 deletions wdio/features/Accounts/CreatingWalletAccount.feature
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@androidApp
@ChainScenarios
@androidApp
@ChainScenarios
@smoke

Feature: Creating account in wallet

Scenario: Import account
Given I have imported my wallet
# Given I have created my wallet
Given the app displayed the splash animation
And I have imported my wallet
And I tap No Thanks on the Enable security check screen
And I tap No thanks on the onboarding welcome tutorial

Expand Down
3 changes: 2 additions & 1 deletion wdio/features/Accounts/ImportingAccount.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
Feature: Importing account in wallet

Scenario: Import account
Given I have imported my wallet
Given the app displayed the splash animation
And I have imported my wallet
And I tap No Thanks on the Enable security check screen
And I tap No thanks on the onboarding welcome tutorial

Expand Down
9 changes: 5 additions & 4 deletions wdio/features/AddressFlow.feature
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
@androidApp
@ChainScenarios
@androidApp
@ChainScenarios
@regression

Feature: Adding addresses to contacts via address book modal and the contacts screen
A user should see the correct warning when trying to send funds to a contract address
A user can saved an ENS name to your address book


The contacts you saved on network A does not carry over to network B

Scenario: Import account and navigate to Send
Given I have imported my wallet
Given the app displayed the splash animation
And I have imported my wallet
And I tap No Thanks on the Enable security check screen
And I tap No thanks on the onboarding welcome tutorial
And On the Main Wallet view I tap "Send"
Expand Down
3 changes: 2 additions & 1 deletion wdio/features/BrowserFlow/AddFavorite.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Feature: This feature file covers adding favorite websites in browser.
Scenario: Adding browser Favorites
Add, click and delete favorites. Display favorites in the Favorites tab of home.metamask.io

Given I have imported my wallet
Given the app displayed the splash animation
And I have imported my wallet
And I tap No Thanks on the Enable security check screen
And I tap No thanks on the onboarding welcome tutorial
And I navigate to the browser
Expand Down
5 changes: 3 additions & 2 deletions wdio/features/BrowserFlow/AddressBar.feature
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
@androidApp
@androidApp
@regression
Feature: This feature file covers address view functionality in the browser.

Scenario: Address bar
Navigate to websites using browser address bar.

Given I have imported my wallet
Given the app displayed the splash animation
And I have imported my wallet
And I tap No Thanks on the Enable security check screen
And I tap No thanks on the onboarding welcome tutorial
And I navigate to the browser
Expand Down
3 changes: 2 additions & 1 deletion wdio/features/BrowserFlow/ENSWebsite.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Feature: This feature file covers ENS website in browser.
Scenario: ENS website loads correctly
Navigate to ENS website using browser address bar.

Given I have imported my wallet
Given the app displayed the splash animation
And I have imported my wallet
And I tap No Thanks on the Enable security check screen
And I tap No thanks on the onboarding welcome tutorial
And I navigate to the browser
Expand Down
3 changes: 2 additions & 1 deletion wdio/features/BrowserFlow/InvalidURL.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
Feature: This feature file covers invalid url functionality in the browser.

Scenario: Searching an invalid url and prompts the user with an error message
Given I have imported my wallet
Given the app displayed the splash animation
And I have imported my wallet
And I tap No Thanks on the Enable security check screen
And I tap No thanks on the onboarding welcome tutorial
And I navigate to the browser
Expand Down
7 changes: 4 additions & 3 deletions wdio/features/BrowserFlow/NavigationControls.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Feature: This feature file covers all the navigation control options in browser.
Use the browser controls at the bottom of the view to go back,
forward, search, multi-browser tab view and home button.

Given I have imported my wallet
Given the app displayed the splash animation
And I have imported my wallet
And I tap No Thanks on the Enable security check screen
And I tap No thanks on the onboarding welcome tutorial
And I navigate to the browser
Expand All @@ -16,7 +17,7 @@ Feature: This feature file covers all the navigation control options in browser.
Then the browser view is on the "https://www.reddit.com/" website
And I tap on the back arrow control button
Then the browser view is on the "https://home.metamask.io/" website

When I tap on browser tab button with count 1
Then multi browser tab view is displayed

Expand All @@ -25,4 +26,4 @@ Feature: This feature file covers all the navigation control options in browser.

When I tap on browser tab button with count 2
And I tap on "Close All" button on multi browser tab view
Then all browser tabs are closed
Then all browser tabs are closed
7 changes: 4 additions & 3 deletions wdio/features/BrowserFlow/OptionMenu.feature
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
@androidApp
@ChainScenarios
@androidApp
@ChainScenarios
@regression

Feature: This feature file covers the option menu in the browser.

Background: The user navigates to the Browser screen
Given I have imported my wallet
Given the app displayed the splash animation
And I have imported my wallet
And I tap No Thanks on the Enable security check screen
And I tap No thanks on the onboarding welcome tutorial
And I navigate to the browser
Expand Down
3 changes: 2 additions & 1 deletion wdio/features/BrowserFlow/PhishingDetection.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
Feature: This feature file covers phishing detection functionality the browser.

Scenario: Visiting a malicious website prompts the user with the phishing detection warning
Given I have imported my wallet
Given the app displayed the splash animation
And I have imported my wallet
And I tap No Thanks on the Enable security check screen
And I tap No thanks on the onboarding welcome tutorial
And I navigate to the browser
Expand Down
5 changes: 3 additions & 2 deletions wdio/features/BrowserFlow/SwitchAccount.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Feature: This feature file cover the switch account on the browser flow.
Use the search bar on the homepage to return a popular defi
apps as a suggested search, connect to the dapp and then switch accounts

Given I have imported my wallet
Given the app displayed the splash animation
And I have imported my wallet
And I tap No Thanks on the Enable security check screen
And I tap No thanks on the onboarding welcome tutorial
And I navigate to the browser
Expand All @@ -28,4 +29,4 @@ Feature: This feature file cover the switch account on the browser flow.
Then the created account is selected
And "Account 2" is the active wallet account

#And active wallet is connected to Uniswap
#And active wallet is connected to Uniswap
8 changes: 5 additions & 3 deletions wdio/features/ExploringWizard.feature
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
@androidApp
@androidApp
@regression

Feature: Exploring wizard

Scenario: A user should be able to go through the start exploring tutorial
Given I have imported my wallet
Given the app displayed the splash animation
And I have imported my wallet
And I tap No Thanks on the Enable security check screen
And the onboarding wizard is visible on wallet view

Expand Down Expand Up @@ -54,7 +55,8 @@ Feature: Exploring wizard
And the "Skip" button is no longer visible

Scenario: A user should be able to tap the Skip button and the onboarding tutorial modal should disappear
Given I have imported my wallet
Given the app displayed the splash animation
And I have imported my wallet
And I tap No Thanks on the Enable security check screen
And the onboarding wizard is visible on wallet view

Expand Down
3 changes: 2 additions & 1 deletion wdio/features/ImportCustomToken.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
Feature: Adding a custom token to your wallet

Scenario: Import account
Given I have imported my wallet
Given the app displayed the splash animation
And I have imported my wallet
And I tap No Thanks on the Enable security check screen
And I tap No thanks on the onboarding welcome tutorial

Expand Down
3 changes: 2 additions & 1 deletion wdio/features/LockResetWallet.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
Feature: Lock and Reset Wallet

Scenario: Import account
Given I have imported my wallet
Given the app displayed the splash animation
And I have imported my wallet
And I tap No Thanks on the Enable security check screen
And I tap No thanks on the onboarding welcome tutorial

Expand Down
7 changes: 2 additions & 5 deletions wdio/features/NetworkFlow.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@
Feature: Adding Networks via the popular and custom networks flow
A user should be able to add a custom network via the popular network flow
A user should also have the ability to a add custom network via the custom network flow.
Background: Import wallet
Given I have imported my wallet
And I tap No Thanks on the Enable security check screen
And I tap No thanks on the onboarding welcome tutorial

Scenario Outline: Adding a network via the new popular network flow
Given I have imported my wallet
Given the app displayed the splash animation
And I have imported my wallet
And I tap No Thanks on the Enable security check screen
And I tap No thanks on the onboarding welcome tutorial

Expand Down
2 changes: 1 addition & 1 deletion wdio/step-definitions/onboarding.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Then(/^"([^"]*)?" is displayed/, async (text) => {
switch (text) {
case 'METAMASK':
await WelcomeScreen.waitForSplashAnimationToDisplay();
await WelcomeScreen.waitForSplashAnimationToDisappear();
await WelcomeScreen.waitForSplashAnimationToNotExit();
break;
case 'Wallet setup':
await OnboardingScreen.isScreenTitleVisible();
Expand Down

0 comments on commit 264a509

Please sign in to comment.