Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add e2e tests for optional
Browse files Browse the repository at this point in the history
amanjeetsingh150 committed Oct 8, 2024
1 parent 9721a56 commit 280153c
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions e2e/workspaces/wikipedia/android-advanced-flow.yaml
Original file line number Diff line number Diff line change
@@ -7,6 +7,9 @@ tags:
- runFlow: subflows/onboarding-android.yaml
- tapOn:
id: "org.wikipedia:id/search_container"
- tapOn:
text: "Non existent view"
optional: true
- runScript: scripts/getSearchQuery.js
- inputText: ${output.result}
- assertVisible: ${output.result}
4 changes: 3 additions & 1 deletion e2e/workspaces/wikipedia/ios-advanced-flow.yaml
Original file line number Diff line number Diff line change
@@ -13,7 +13,9 @@ tags:
commands:
- tapOn:
text: "Continue without logging in"

- tapOn:
text: "Non existent view"
optional: true
- tapOn: Search Wikipedia
- runScript: scripts/getSearchQuery.js
- inputText: ${output.result}
3 changes: 3 additions & 0 deletions e2e/workspaces/wikipedia/subflows/onboarding-android.yaml
Original file line number Diff line number Diff line change
@@ -2,6 +2,9 @@ appId: org.wikipedia
---
- launchApp:
clearState: true
- tapOn:
text: "Non existent view"
optional: true
- tapOn:
id: "org.wikipedia:id/fragment_onboarding_forward_button"
- tapOn:
3 changes: 3 additions & 0 deletions e2e/workspaces/wikipedia/subflows/onboarding-ios.yaml
Original file line number Diff line number Diff line change
@@ -10,3 +10,6 @@ appId: org.wikimedia.wikipedia
duration: 400
- waitForAnimationToEnd
- tapOn: Get started
- tapOn:
text: "Non existent view"
optional: true

0 comments on commit 280153c

Please sign in to comment.