Skip to content

Commit

Permalink
chore: add e2e tests for optional (#2080)
Browse files Browse the repository at this point in the history
  • Loading branch information
amanjeetsingh150 authored Jan 4, 2025
1 parent c4b0de9 commit 5c57e6e
Show file tree
Hide file tree
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
Expand Up @@ -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}
Expand Down
4 changes: 3 additions & 1 deletion e2e/workspaces/wikipedia/ios-advanced-flow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
3 changes: 3 additions & 0 deletions e2e/workspaces/wikipedia/subflows/onboarding-android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions e2e/workspaces/wikipedia/subflows/onboarding-ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 5c57e6e

Please sign in to comment.