Skip to content

Commit 97fd283

Browse files
committed
Tap the message box without waiting for Home's moving orb to settle, type shorter text, give the longer flows 3 minutes, and stop Maestro's Android driver after a killed flow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
1 parent 9c5e8bd commit 97fd283

4 files changed

Lines changed: 25 additions & 10 deletions

File tree

‎rn-shell/ci/run_flows.py‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@
4343
# server does, until the next hand-off).
4444
("handoff-sign-in", "flows/02-handoff-sign-in.yaml", "both", None, 120),
4545
("first-screen", "flows/01-first-screen.yaml", "both", None, 120),
46-
("tabs", "flows/03-tabs.yaml", "both", None, 120),
47-
("keyboard-home", "flows/04-keyboard.yaml", "both", None, 120),
48-
("keyboard-conversation", "flows/04b-keyboard-conversation.yaml", "both", None, 120),
46+
("tabs", "flows/03-tabs.yaml", "both", None, 180),
47+
("keyboard-home", "flows/04-keyboard.yaml", "both", None, 180),
48+
("keyboard-conversation", "flows/04b-keyboard-conversation.yaml", "both", None, 180),
4949
("relaunch-signed-in", "flows/05-relaunch-signed-in.yaml", "both", None, 120),
50-
("skeleton", "flows/08-skeleton.yaml", "both", None, 120),
50+
("skeleton", "flows/08-skeleton.yaml", "both", None, 180),
5151
("web-fallback", "flows/07-web-fallback.yaml", "both", None, 120),
5252
("sign-out", "flows/06-sign-out.yaml", "both", None, 120),
5353
("foreign-callback", "flows/18-foreign-callback.yaml", "android", None, 120),
@@ -139,6 +139,9 @@ def stop_maestro():
139139
"""A flow killed at its deadline leaves Maestro's driver half-alive: stop it before the next flow."""
140140
sh(["pkill", "-f", "maestro.cli.AppKt"])
141141
sh(["pkill", "-f", "dev.mobile.maestro"])
142+
# Android: the driver Maestro leaves on the emulator; it starts again with the next flow.
143+
sh(["adb", "shell", "am", "force-stop", "dev.mobile.maestro"])
144+
sh(["adb", "shell", "am", "force-stop", "dev.mobile.maestro.test"])
142145
time.sleep(2)
143146

144147

‎rn-shell/maestro/demo/tour.yaml‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ androidWebViewHierarchy: devtools
2727
timeout: 20000
2828
- waitForAnimationToEnd:
2929
timeout: 2500
30-
- tapOn: "(Message|Ask anything)"
30+
- tapOn:
31+
text: "(Message|Ask anything)"
32+
# Home's orb keeps moving: do not wait for the screen to settle.
33+
waitToSettleTimeoutMs: 1000
3134
- inputText: "Summarize what changed in competitor pricing"
3235
- waitForAnimationToEnd:
3336
timeout: 2000
@@ -49,7 +52,10 @@ androidWebViewHierarchy: devtools
4952
- tapOn: "Competitor pricing notes"
5053
- waitForAnimationToEnd:
5154
timeout: 3000
52-
- tapOn: "(Message|Ask anything)"
55+
- tapOn:
56+
text: "(Message|Ask anything)"
57+
# Home's orb keeps moving: do not wait for the screen to settle.
58+
waitToSettleTimeoutMs: 1000
5359
- inputText: "What changed since?"
5460
- waitForAnimationToEnd:
5561
timeout: 1500

‎rn-shell/maestro/flows/04-keyboard.yaml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ appId: ai.openbot.rnshell
66
androidWebViewHierarchy: devtools
77
---
88
- runFlow: ../subflows/launch-signed-in.yaml
9-
- tapOn: "(Message|Ask anything)"
9+
- tapOn:
10+
text: "(Message|Ask anything)"
11+
# Home's orb keeps moving: do not wait for the screen to settle.
12+
waitToSettleTimeoutMs: 1000
1013
- extendedWaitUntil:
1114
visible:
1215
id: "debug-state"
1316
text: ".*keyboard=1.*"
1417
timeout: 10000
15-
- inputText: "Hello from Maestro"
18+
- inputText: "Hello"
1619
- assertNotVisible:
1720
id: "tab-bar"
1821
- assertVisible: "Send message"

‎rn-shell/maestro/flows/04b-keyboard-conversation.yaml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@ androidWebViewHierarchy: devtools
1616
visible: "Here is the first draft."
1717
timeout: 20000
1818
# The conversation may have focused its box already; tap it either way.
19-
- tapOn: "(Message|Ask anything)"
19+
- tapOn:
20+
text: "(Message|Ask anything)"
21+
# Home's orb keeps moving: do not wait for the screen to settle.
22+
waitToSettleTimeoutMs: 1000
2023
- extendedWaitUntil:
2124
visible:
2225
id: "debug-state"
2326
text: ".*keyboard=1.*"
2427
timeout: 10000
25-
- inputText: "What changed?"
28+
- inputText: "Changes?"
2629
- assertVisible: "Send message"
2730
- takeScreenshot: conversation-keyboard
2831
- tapOn: "Send message"

0 commit comments

Comments
 (0)