-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests(mobile): add second safe #4974
Open
liliya-soroka
wants to merge
6
commits into
dev
Choose a base branch
from
mobile-add-second-safe-test
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
11942c6
tests(mobile): add second safe
liliya-soroka 1e2e7b6
fix(mobile): bottom sheet not visible in maestro
compojoom 3931337
fix(mobile): test was not taping in the input field
compojoom edb606f
tests(mobile): update add second safe
liliya-soroka c5f1bdd
tests(mobile): Workflow_Structure
liliya-soroka 8d6ace5
tests(mobile): one clean app start file + test data step inside each …
liliya-soroka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# config.yaml | ||
flows: | ||
- happypath/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
appId: global.safe.mobileapp | ||
--- | ||
- launchApp: | ||
appId: 'global.safe.mobileapp' | ||
clearState: true | ||
clearKeychain: true | ||
- runFlow: | ||
when: | ||
visible: | ||
text: 'http.*' | ||
commands: | ||
- tapOn: 'http.*' | ||
- runFlow: | ||
when: | ||
visible: 'Continue' | ||
commands: | ||
- tapOn: 'Continue' | ||
- runFlow: | ||
when: | ||
visible: 'Reload' | ||
commands: | ||
- tapOn: 'Reload' | ||
- tapOn: | ||
id: 'e2eOnboardedAccount' | ||
- tapOn: | ||
id: 'opt-in-secondary-button' | ||
- tapOn: | ||
id: 'dropdown-label-view' | ||
index: 0 | ||
- tapOn: | ||
id: 'add-existing-account' | ||
- tapOn: | ||
id: 'enter-manually' | ||
- assertVisible: | ||
id: 'safe-input' | ||
- tapOn: | ||
id: 'safe-input' | ||
- assertVisible: 'Continue' | ||
- inputText: '0xF2CeA96575d6b10f51d9aF3b10e3e4E5738aa6bd' | ||
- assertVisible: 'No Safe deployment found for this this address' | ||
- 'eraseText' | ||
- inputText: '0x1230B3D59858296A31053C1b8562ECF89A2f888B' | ||
- assertVisible: 'Invalid address format' | ||
- 'eraseText' | ||
- inputText: 'sep:0x9BFCA75a05175503580D593F4330b5505c594596' | ||
- assertVisible: 'Sepolia' | ||
- assertVisible: | ||
id: 'success-icon' | ||
- tapOn: | ||
id: 'continue-button' | ||
- assertVisible: 'Import your signers to unlock account' | ||
- assertVisible: " Before you import signers... Make sure to import signers from\ | ||
\ this list only. Others will not be imported." | ||
- assertVisible: | ||
id: 'signer-0x65F8236309e5A99Ff0d129d04E486EBCE20DC7B0' | ||
- assertVisible: | ||
id: 'signer-0x0D65139Da4B36a8A39BF1b63e950038D42231b2e' | ||
- assertVisible: | ||
id: 'signer-0x8aEf2f5c3F17261F6F1C4dA058D022BE92776af8' | ||
- tapOn: | ||
id: 'continue-button' | ||
- assertVisible: '0x9BFC...4596' | ||
- assertVisible: 'Sepolia' |
20 changes: 1 addition & 19 deletions
20
apps/mobile/e2e/onboarded-user.yml → apps/mobile/e2e/happypath/onboarded-user.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 1 addition & 21 deletions
22
apps/mobile/e2e/onboarding.yml → apps/mobile/e2e/happypath/onboarding.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
appId: 'global.safe.mobileapp' | ||
--- | ||
- launchApp: | ||
appId: 'global.safe.mobileapp' | ||
clearState: true | ||
clearKeychain: true | ||
- runFlow: | ||
when: | ||
visible: | ||
text: 'http.*' | ||
commands: | ||
- tapOn: 'http.*' | ||
- runFlow: | ||
when: | ||
visible: 'Continue' | ||
commands: | ||
- tapOn: 'Continue' | ||
- runFlow: | ||
when: | ||
visible: 'Reload' | ||
commands: | ||
- tapOn: 'Reload' | ||
- tapOn: | ||
id: 'e2eOnboardedAccount' | ||
- tapOn: | ||
id: 'opt-in-secondary-button' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
appId: 'global.safe.mobileapp' | ||
--- | ||
- launchApp: | ||
appId: 'global.safe.mobileapp' | ||
clearState: true | ||
clearKeychain: true | ||
- runFlow: | ||
when: | ||
visible: | ||
text: 'http.*' | ||
commands: | ||
- tapOn: 'http.*' | ||
- runFlow: | ||
when: | ||
visible: 'Continue' | ||
commands: | ||
- tapOn: 'Continue' | ||
- runFlow: | ||
when: | ||
visible: 'Reload' | ||
commands: | ||
- tapOn: 'Reload' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liliya-soroka you've abstracted the clean app start in a separate file. Can't you import it here and just have the tapOn as new steps in the flow?