Skip to content

Commit

Permalink
Add e2e test for retry command (#2214)
Browse files Browse the repository at this point in the history
* Add e2e test for retry command

* Alphebetise existing and annotate missing e2e tests
  • Loading branch information
Fishbowler authored Dec 30, 2024
1 parent fb0601a commit c07184d
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 11 deletions.
13 changes: 13 additions & 0 deletions e2e/workspaces/demo_app/commands/retry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
appId: com.example.example
---
- launchApp

- retry:
maxRetries: 3
commands:
- tapOn:
id: 'fabAddIcon'
retryTapIfNoChange: false
- waitForAnimationToEnd
- assertVisible: '2'
- assertVisible: 'Flutter Demo Home Page'
58 changes: 47 additions & 11 deletions e2e/workspaces/demo_app/commands_tour.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,20 @@ env:
file: commands/copyTextFrom.yaml
label: copyTextFrom

- runFlow:
when:
true: ${RUN_ONLY == "" || RUN_ONLY == "evalScript"}
file: commands/evalScript.yaml
label: evalScript
# TODO: doubleTapOn

- runFlow:
when:
true: ${RUN_ONLY == "" || RUN_ONLY == "eraseText"}
file: commands/eraseText.yaml
label: eraseText

- runFlow:
when:
true: ${RUN_ONLY == "" || RUN_ONLY == "evalScript"}
file: commands/evalScript.yaml
label: evalScript

- runFlow:
when:
true: ${RUN_ONLY == "" || RUN_ONLY == "extendedWaitUntil"}
Expand Down Expand Up @@ -111,26 +113,34 @@ env:
file: commands/launchApp.yaml
label: launchApp

# TODO: openLink (probably after #2058)
# TODO: longPressOn

- runFlow:
when:
true: ${RUN_ONLY == "" || RUN_ONLY == "pressKey"}
file: commands/pressKey.yaml
label: pressKey
# TODO: openLink (probably after #2058)

- runFlow:
when:
true: ${RUN_ONLY == "" || RUN_ONLY == "pasteText"}
file: commands/pasteText.yaml
label: pasteText

- runFlow:
when:
true: ${RUN_ONLY == "" || RUN_ONLY == "pressKey"}
file: commands/pressKey.yaml
label: pressKey

- runFlow:
when:
true: ${RUN_ONLY == "" || RUN_ONLY == "repeat"}
file: commands/repeat.yaml
label: repeat

- runFlow:
when:
true: ${RUN_ONLY == "" || RUN_ONLY == "retry"}
file: commands/retry.yaml
label: retry

- runFlow:
when:
true: ${RUN_ONLY == "" || RUN_ONLY == "runFlow"}
Expand All @@ -142,3 +152,29 @@ env:
true: ${RUN_ONLY == "" || RUN_ONLY == "runScript"}
file: commands/runScript.yaml
label: runScript

# TODO: scroll

# TODO: scrollUntilVisible

# TODO: setAirplaneMode

# TODO: setLocation

# TODO: startRecording

# TODO: stopApp

# TODO: stopRecording

# TODO: swipe

# TODO: takeScreenshot

# TODO: tapOn

# TODO: toggleAirplaneMode

# TODO: travel

# TODO: waitForAnimationToEnd

0 comments on commit c07184d

Please sign in to comment.