Skip to content

Commit

Permalink
Add e2e test for setOrientation
Browse files Browse the repository at this point in the history
  • Loading branch information
Fishbowler committed Jan 6, 2025
1 parent 2dff691 commit 2e36ab2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
1 change: 1 addition & 0 deletions e2e/manifest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ https://storage.googleapis.com/mobile.dev/cli_e2e/wikipedia.zip
https://storage.googleapis.com/mobile.dev/cli_e2e/nowinandroid.apk
https://storage.googleapis.com/mobile.dev/cli_e2e/demo_app.apk
https://storage.googleapis.com/mobile.dev/cli_e2e/demo_app.zip
https://storage.googleapis.com/mobile.dev/cli_e2e/setOrientation.apk
12 changes: 7 additions & 5 deletions e2e/run_tests
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ for workspace_dir in ./workspaces/*; do
###
### Run failing tests
###
# edge case: the wikipedia workspace has no failing flows
if [ "$(basename "$workspace_dir")" = "wikipedia" ]; then
continue
fi

# edge case: some workspaces have no failing flows
case $(basename "$workspace_dir") in
wikipedia|setOrientation)
continue
;;
esac

WORKSPACE_PASS=true # Reset for failing flows
_h2 "$app_name" "run failing tests"

Expand Down
14 changes: 14 additions & 0 deletions e2e/workspaces/setOrientation/test-set-orientation-flow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
appId: com.example.maestro.orientation
tags:
- android
- passing
---
- launchApp
- setOrientation: LANDSCAPE_LEFT
- assertVisible: "LANDSCAPE_LEFT"
- setOrientation: LANDSCAPE_RIGHT
- assertVisible: "LANDSCAPE_RIGHT"
- setOrientation: UPSIDE_DOWN
- assertVisible: "UPSIDE_DOWN"
- setOrientation: PORTRAIT
- assertVisible: "PORTRAIT"

0 comments on commit 2e36ab2

Please sign in to comment.