Skip to content

Commit e4467bf

Browse files
committed
Key the web build cache on git's index (hashFiles timed out on macOS), make each chained flow start from its own tab, check the Bots page by its top, wait for the real hand-off page rather than the first screen's line, and add a test-only software layer for Android recordings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
1 parent 7d67089 commit e4467bf

12 files changed

Lines changed: 46 additions & 8 deletions

File tree

‎.github/workflows/rn-shell-android.yml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,19 @@ jobs:
7272
with:
7373
bun-version: 1.4.3
7474

75+
- name: Key the built web app on its sources (git's index: hashFiles over app/ timed out on macOS)
76+
id: web-key
77+
run: |
78+
sum="$(git ls-files -s app/src app/public app/index.html app/package.json shared tokens bun.lock package.json .env.example \
79+
'app/vite.config.*' 'app/tsconfig*.json' | sha256sum | cut -c1-40)"
80+
echo "key=rn-shell-web-$sum" >> "$GITHUB_OUTPUT"
81+
7582
- name: Look for the built web app in the cache
7683
id: web-cache
7784
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
7885
with:
7986
path: app/dist
80-
key: rn-shell-web-${{ hashFiles('app/src/**', 'app/public/**', 'app/index.html', 'app/package.json', 'app/vite.config.*', 'app/tsconfig*.json', 'shared/**', 'tokens/**', 'bun.lock', 'package.json', '.env.example') }}
87+
key: ${{ steps.web-key.outputs.key }}
8188

8289
- name: Build the web app and start the servers in the background
8390
run: nohup rn-shell/ci/start_servers.sh "$ARTIFACTS" > /dev/null 2>&1 &

‎.github/workflows/rn-shell-ios.yml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,19 @@ jobs:
6868
with:
6969
bun-version: 1.4.3
7070

71+
- name: Key the built web app on its sources (git's index: hashFiles over app/ timed out on macOS)
72+
id: web-key
73+
run: |
74+
sum="$(git ls-files -s app/src app/public app/index.html app/package.json shared tokens bun.lock package.json .env.example \
75+
'app/vite.config.*' 'app/tsconfig*.json' | sha256sum | cut -c1-40)"
76+
echo "key=rn-shell-web-$sum" >> "$GITHUB_OUTPUT"
77+
7178
- name: Look for the built web app in the cache
7279
id: web-cache
7380
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
7481
with:
7582
path: app/dist
76-
key: rn-shell-web-${{ hashFiles('app/src/**', 'app/public/**', 'app/index.html', 'app/package.json', 'app/vite.config.*', 'app/tsconfig*.json', 'shared/**', 'tokens/**', 'bun.lock', 'package.json', '.env.example') }}
83+
key: ${{ steps.web-key.outputs.key }}
7784

7885
- name: Build the web app and start the servers in the background
7986
run: nohup rn-shell/ci/start_servers.sh "$ARTIFACTS" > /dev/null 2>&1 &

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ appId: ai.openbot.rnshell
99
openbot.base_url: "${BASE_A}"
1010
openbot.reset: "1"
1111
openbot.handoff_auto: "1"
12+
openbot.software_layer: "1"
1213
openbot.test_name: "demo"
1314
- extendedWaitUntil:
1415
visible:
@@ -59,7 +60,7 @@ appId: ai.openbot.rnshell
5960
- tapOn:
6061
id: "tab-bots"
6162
- extendedWaitUntil:
62-
visible: "Research Bot"
63+
visible: "New Bot"
6364
timeout: 20000
6465
- waitForAnimationToEnd:
6566
timeout: 2500

‎rn-shell/maestro/flows/03-tabs.yaml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ appId: ai.openbot.rnshell
3232
timeout: 10000
3333
- tapOn:
3434
id: "tab-bots"
35+
# "New Bot" is at the top of the Bots page (its list scrolls; the emulator also ghosts this page's
36+
# drawing, the same as for the native shell).
3537
- extendedWaitUntil:
36-
visible: "Research Bot"
38+
visible: "New Bot"
3739
timeout: 20000
3840
- assertVisible:
3941
id: "debug-state"

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
# conversation, sending keeps it up.
44
appId: ai.openbot.rnshell
55
---
6+
- tapOn:
7+
id: "tab-home"
8+
- extendedWaitUntil:
9+
visible: "Start a conversation"
10+
timeout: 20000
611
- tapOn: "(Message|Ask anything)"
712
- extendedWaitUntil:
813
visible:

‎rn-shell/maestro/flows/06-sign-out.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Sign out is the web app's own (Account menu); the bridge's signed-out returns to the first screen.
22
appId: ai.openbot.rnshell
33
---
4+
- tapOn:
5+
id: "tab-home"
46
- extendedWaitUntil:
57
visible: "Account"
68
timeout: 20000

‎rn-shell/maestro/flows/15-process-death-a.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ appId: ai.openbot.rnshell
1212
- tapOn:
1313
id: "tab-bots"
1414
- extendedWaitUntil:
15-
visible: "Research Bot"
15+
visible: "New Bot"
1616
timeout: 20000
1717
- takeScreenshot: before-kill

‎rn-shell/maestro/flows/16-process-death-b.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ appId: ai.openbot.rnshell
77
text: ".*phase=signedIn.*skeleton=0.*"
88
timeout: 45000
99
- extendedWaitUntil:
10-
visible: "Research Bot"
10+
visible: "New Bot"
1111
timeout: 30000
1212
- takeScreenshot: after-kill
1313
- tapOn:

‎rn-shell/maestro/real/01-first-screen-sign-in.yaml‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ appId: ai.openbot.rnshell
2727
- takeScreenshot: sheet-consent
2828
- tapOn: "Continue"
2929
- extendedWaitUntil:
30-
visible: "(?i).*(google|github|microsoft|continue with|sign in|log in|email).*"
30+
notVisible:
31+
id: "sign-in-button"
32+
timeout: 20000
33+
- extendedWaitUntil:
34+
visible: "(?i).*(google|github|microsoft|continue with|password|e-?mail).*"
3135
timeout: 40000
3236
- takeScreenshot: real-sign-in-sheet
3337
- tapOn: "Cancel"
@@ -36,7 +40,11 @@ appId: ai.openbot.rnshell
3640
platform: Android
3741
commands:
3842
- extendedWaitUntil:
39-
visible: "(?i).*(google|github|microsoft|continue with|sign in|log in|email).*"
43+
notVisible:
44+
id: "sign-in-button"
45+
timeout: 20000
46+
- extendedWaitUntil:
47+
visible: "(?i).*(google|github|microsoft|continue with|password|e-?mail).*"
4048
timeout: 40000
4149
- takeScreenshot: real-sign-in-custom-tab
4250
- back

‎rn-shell/src/config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export const NO_HOOKS: TestHooks = {
2626
diagnostics: false,
2727
testName: null,
2828
forceDark: false,
29+
softwareLayer: false,
2930
};
3031

3132
function loadHooks(): TestHooks {

0 commit comments

Comments
 (0)