Skip to content

Commit 13da360

Browse files
authored
[CI] Await the example button before tapping it in Argent flows (#4482)
## Description The search results may not be rendered yet when the flow taps the example button right after typing into the search field. Await the button in every flow before tapping it. ## Test plan Run the flows in `.argent/flows` and check that they pass.
1 parent d8fa39e commit 13da360

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎.argent/flows/basic-long-press-test.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ steps:
44
- await: { visible: { text: "Empty Example" }, timeout: 15000 }
55
- echo: "On the Home list, search for long press example"
66
- type: { text: "long", into: { id: "search-examples" } }
7+
- await: { visible: { text: "Basic LongPress" } }
78
- echo: "Tap the example to open it"
89
- tap: "Basic LongPress"
910
- echo: "Clear console"

‎.argent/flows/basic-tap-test.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ steps:
44
- await: { visible: { text: "Empty Example" }, timeout: 15000 }
55
- echo: "On the Home list, search for tap example"
66
- type: { text: "tap", into: { id: "search-examples" } }
7+
- await: { visible: { text: "Basic Tap" } }
78
- echo: "Tap the example to open it"
89
- tap: "Basic Tap"
910
- echo: "Clear console"

‎.argent/flows/nested-touchables-test.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ steps:
44
- await: { visible: { text: "Empty Example" }, timeout: 15000 }
55
- echo: "On the Home list, search for the nested touchables example"
66
- type: { text: "nested touchables", into: { id: "search-examples" } }
7+
- await: { visible: { text: "Nested touchables" } }
78
- echo: "Tap the example to open it"
89
- tap: { text: "Nested touchables" }
910
- await: { visible: { id: "level-4" } }

‎.argent/flows/shared-value-test.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ steps:
44
- await: { visible: { text: "Empty Example" }, timeout: 15000 }
55
- echo: "On the Home list, search for the shared value example"
66
- type: { text: "shared", into: { id: "search-examples" } }
7+
- await: { visible: { text: "Shared Value" } }
78
- echo: "Tap the example to open it"
89
- tap: { text: "Shared Value" }
910
- await: { visible: { id: "shared-value-box" } }

‎.argent/flows/timer-test.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ steps:
44
- await: { visible: { text: "Empty Example" }, timeout: 15000 }
55
- echo: "On the Home list, search for the timer example"
66
- type: { text: "timer", into: { id: "search-examples" } }
7+
- await: { visible: { text: "Timer" } }
78
- echo: "Tap the example to open it"
89
- tap: { text: "Timer" }
910
- await: { idle: true }

0 commit comments

Comments
 (0)