Skip to content

test(mobile-benchmark): re-record iOS recordings on agent-device 0.21.35 - #1485

Merged
okwasniewski merged 1 commit into
mainfrom
oskar/ios-benchmark-rerecord
Oct 30, 2026
Merged

okwasniewski merged 1 commit into
mainfrom
oskar/ios-benchmark-rerecord

Conversation

@okwasniewski

@okwasniewski okwasniewski commented Oct 30, 2026 •

Copy link
Copy Markdown
Member
  • Re-records 7 iOS entries under apps/mobile-benchmark/.e2e/cache/: Infinite Scroll List, Modal Flow, Bottom Tabs, Text Input Variations, Gestures, Sticky Chrome Target, Apple Pay. Same keys and file names, so nothing orphaned. Android entries untouched.
  • Why they broke: agent-device 0.21.31 (fix(ios): keep the bridge while a surface host only lingers callstack/agent-device#3873) keeps the fast AX bridge snapshot backend when a system-sheet host (SafariViewService, left running after Login Form's "Save Password?" sheet) is still alive but off screen. The old entries were recorded with that host lingering, so they came from the XCTest tree, where an unlabelled wrapper takes its child's label (other "Flow completed"). On 0.21.35 those anchors and targets no longer exist, so the steps end-mismatch or miss their target.
  • The new entries drop the wrapper anchors (text "Flow completed" only), and the same steps replay whether Login Form ran first or not.
  • README unchanged: the hand-offs it lists and their reasons still hold.

Verified

Ran it locally: yes

  • test:agent --strict-cache --target ios-simulator --retries 0, fresh iPhone 17 Pro iOS 26.5 sim (erased before the first after-run), release build of this app, agent-device 0.21.35.
iOS strict, local Cache Tests
main 6 replayed · 12 handed off · 4 missed 12 passed, 10 failed
this PR, run 1 (fresh sim) 12 replayed · 6 handed off · 4 missed 19 passed, 3 failed
this PR, run 2 (back to back) 12 replayed · 6 handed off · 4 missed 18 passed, 4 failed
this PR, the 7 re-recorded tests after a sim reboot, no Login Form first 6 replayed · 1 handed off 6 passed, 1 failed
this PR, Modal Flow alone after a sim reboot 1 replayed 1 passed
  • Failures left are the known ones: Debounced Search, Photo Picker, Choice Controls (REPLAY_STALE, see the README). Gestures replays its long-press and hands the swipe and double tap to the model by design; the live double tap or swipe not registering on iOS is the existing XCTest gesture flake (also fails on main).
  • For reference, @e2e-dev/mobile 0.12.4 replayed 11 with the old entries.
  • CI ios agent (lenient), replayed from cache out of 25 agent steps:
CI iOS agent Replayed
main (#1468, #1463) 5, 6
this PR 12

@github-actions github-actions Bot added the size:L Up to 499 changed lines, not counting tests, fixtures, translated docs, or the lockfile label Oct 30, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 7 files

View guided diff | Turn on auto-fix | Re-trigger cubic

@github-actions

Copy link
Copy Markdown
Contributor

🟢 e2e ios: 55 passed, 1 skipped

All 56 tests in 7 files
Test Time
⏭️ tests/controls.e2e.ts · 23 passed, 1 skipped 3m 5s
🟢 control inventory › a label query resolves a labeled text field 10.1s
🟢 control inventory › a labeled field answers name, display value, value reads, fill, and clear 16.1s
🟢 control inventory › a placeholder query and attribute reads find the field 4.9s
🟢 control inventory › a secure field takes a fill and denies value reads 8.5s
🟢 control inventory › press sends a character and Enter through the soft keyboard 10.1s
🟢 control inventory › a field autofocuses on mount and focus() moves the focus 10.5s
🟢 control inventory › toBeFocused follows the focus 9.3s
🟢 control inventory › a switch checks, unchecks, and reports its state 10.4s
🟢 control inventory › checkbox and radio roles answer getByRole, and a checkbox toggles by tap 9.0s
🟢 control inventory › checkbox and radio roles check, uncheck, and report their state 13.8s
🟢 control inventory › a radio group reports the checked option 9.1s
🟢 control inventory › buttons report disabled, enabled, and a state that arrives later 8.0s
🟢 control inventory › a display: none element is absent rather than hidden, its visible twin attached 7.3s
🟢 control inventory › a header answers its accessible name 4.8s
🟢 control inventory › a tab row answers count, all, texts, filters, positions, and switching 6.7s
🟢 control inventory › a list answers counts, list-form text, reads, and boxes in order 7.4s
⏭️ control inventory › a row contains its texts (skipped: React Native flattens a plain View out of the accessibility tree on both platforms: XCTest and the Android helper report a View with a testID as a leaf beside its children, so filter({ has }) and a query scoped to it match nothing; only Sc…)
🟢 control inventory › a long press lands as one 8.4s
🟢 control inventory › pointer verbs land at the point asked for 10.6s
🟢 control inventory › an ambiguous locator fails at once 6.2s
🟢 control inventory › screenshot, restart, and clearState reopen the app on its home list 12.0s
🟢 refusals › verbs a device never declares are refused before the engine 2ms
🟢 refusals › keys the soft keyboard cannot send are refused by the engine 556ms
🟢 refusals › a missing locator fails as not found once its timeout passes 1.1s
🟢 tests/device-fixture.e2e.ts · 11 passed 1m 36s
🟢 device fixture › setAppearance flips the color scheme the app reads 13.5s
🟢 device fixture › setOrientation rotates the window the app measures 9.5s
🟢 device fixture › the clipboard reads back what was written 6.1s
🟢 device fixture › home leaves the app, openApp brings it back where it was 6.4s
🟢 device fixture › closeApp then openApp relaunches on the home list 8.1s
🟢 device fixture › closeApp leaves the next commands on the same device 12.2s
🟢 device fixture › foregroundApp after closeApp reports the closed session as APP_NOT_OPEN 7.1s
🟢 device fixture › device.back pops the scenario 5.9s
🟢 device fixture › unstable_raw reaches the test session through agent-device 4.7s
🟢 device fixture › setLocation and clearLocation change what the app reads 11.0s
🟢 device fixture › enrollBiometrics and setBiometrics answer a biometric prompt 11.4s
🟢 tests/device.e2e.ts · 3 passed 1m 9s
🟢 sequential onboarding echoes the exact values 43.1s
🟢 onboarding rejects a malformed email before advancing 14.6s
🟢 dismissing the keyboard over choice controls leaves them as they were 11.6s
🟢 tests/flows-lists.e2e.ts · 7 passed 3m 17s
🟢 infinite scroll reaches the target item 24.3s
🟢 product catalog adds exactly two of the right variant 10.4s
🟢 gestures: long-press, then swipe left 9.5s
🟢 sticky chrome: accept below the fold, then continue 10.8s
🟢 async states: load, pull to refresh, claim through the toast 13.9s
🟢 huge virtualized list reaches row 512 1m 56s
🟢 web view coupon form applies the code shown on the page 11.9s
🟢 tests/flows.e2e.ts · 7 passed 1m 11s
🟢 text inputs unlock the submit button 13.4s
🟢 filled text inputs report their values 10.9s
🟢 modal flow confirms through the native alert 10.0s
🟢 bottom tabs act inside the last tab 7.7s
🟢 error recovery retries, then confirms the delete 9.4s
🟢 choice controls place the exact order 7.7s
🟢 debounced search selects the target once results arrive 11.4s
🟢 tests/login-form.e2e.ts · 3 passed 50.2s
🟢 login form › rejects a malformed email 13.7s
🟢 login form › rejects an unknown account 14.0s
🟢 login form › signs in and logs out 22.4s
🟢 tests/smoke.e2e.ts · 1 passed 7.5s
🟢 home lists the scenarios and opens one 7.5s

e2e 0.22.0 · 6m 2s · ios-simulator · run artifacts

@github-actions

Copy link
Copy Markdown
Contributor

🟢 e2e android: 57 passed, 1 skipped

All 58 tests in 7 files
Test Time
⏭️ tests/controls.e2e.ts · 24 passed, 1 skipped 2m 45s
🟢 control inventory › a label query resolves a labeled text field 21.7s
🟢 control inventory › a labeled field answers name, display value, value reads, fill, and clear 11.1s
🟢 control inventory › a placeholder query and attribute reads find the field 6.4s
🟢 control inventory › a secure field takes a fill and denies value reads 6.4s
🟢 control inventory › press sends a character and Enter through the soft keyboard 7.4s
🟢 control inventory › a field autofocuses on mount and focus() moves the focus 8.4s
🟢 control inventory › toBeFocused follows the focus 8.4s
🟢 control inventory › a switch checks, unchecks, and reports its state 8.2s
🟢 control inventory › checkbox and radio roles answer getByRole, and a checkbox toggles by tap 6.3s
🟢 control inventory › checkbox and radio roles check, uncheck, and report their state 10.2s
🟢 control inventory › a tab role answers getByRole 3.8s
🟢 control inventory › a radio group reports the checked option 7.3s
🟢 control inventory › buttons report disabled, enabled, and a state that arrives later 6.8s
🟢 control inventory › a display: none element is absent rather than hidden, its visible twin attached 6.6s
🟢 control inventory › a header answers its accessible name 4.0s
🟢 control inventory › a tab row answers count, all, texts, filters, positions, and switching 5.6s
🟢 control inventory › a list answers counts, list-form text, reads, and boxes in order 5.3s
⏭️ control inventory › a row contains its texts (skipped: React Native flattens a plain View out of the accessibility tree on both platforms: XCTest and the Android helper report a View with a testID as a leaf beside its children, so filter({ has }) and a query scoped to it match nothing; only Sc…)
🟢 control inventory › a long press lands as one 7.4s
🟢 control inventory › a double tap lands inside the 300 ms window 7.0s
🟢 control inventory › an ambiguous locator fails at once 5.4s
🟢 control inventory › screenshot, restart, and clearState reopen the app on its home list 8.2s
🟢 refusals › verbs a device never declares are refused before the engine 3ms
🟢 refusals › keys the soft keyboard cannot send are refused by the engine 1.6s
🟢 refusals › a missing locator fails as not found once its timeout passes 1.1s
🟢 tests/device-fixture.e2e.ts · 10 passed 1m 17s
🟢 device fixture › setOrientation rotates the window the app measures 5.2s
🟢 device fixture › home leaves the app, openApp brings it back where it was 4.6s
🟢 device fixture › foregroundApp sees the home screen after home() 4.2s
🟢 device fixture › closeApp then openApp relaunches on the home list 6.9s
🟢 device fixture › closeApp leaves the next commands on the same device 6.2s
🟢 device fixture › foregroundApp after closeApp reports the closed session as APP_NOT_OPEN 4.8s
🟢 device fixture › device.back pops the scenario 5.3s
🟢 device fixture › unstable_raw reaches the test session through agent-device 4.3s
🟢 device fixture › setNetwork and setAirplaneMode change what the app sees 14.8s
🟢 device fixture › setLocation and clearLocation change what the app reads 20.6s
🟢 tests/device.e2e.ts · 5 passed 37.5s
🟢 permission prompt › allowing the system dialog enables the microphone 5.6s
🟢 permission prompt › a denied prompt recovers once the permission is granted outside 11.4s
🟢 sequential onboarding echoes the exact values 9.3s
🟢 onboarding rejects a malformed email before advancing 5.1s
🟢 dismissing the keyboard over choice controls leaves them as they were 6.2s
🟢 tests/flows-lists.e2e.ts · 7 passed 2m 7s
🟢 infinite scroll reaches the target item 16.0s
🟢 product catalog adds exactly two of the right variant 8.4s
🟢 gestures: long-press, then swipe left 8.0s
🟢 gestures: double-tap completes the flow 9.4s
🟢 sticky chrome: accept below the fold, then continue 9.7s
🟢 async states: load, pull to refresh, claim through the toast 12.3s
🟢 huge virtualized list reaches row 512 1m 3s
🟢 tests/flows.e2e.ts · 7 passed 49.4s
🟢 text inputs unlock the submit button 6.4s
🟢 filled text inputs report their values 5.5s
🟢 modal flow confirms through the native alert 9.0s
🟢 bottom tabs act inside the last tab 6.4s
🟢 error recovery retries, then confirms the delete 8.2s
🟢 choice controls place the exact order 5.6s
🟢 debounced search selects the target once results arrive 8.2s
🟢 tests/login-form.e2e.ts · 3 passed 26.8s
🟢 login form › rejects a malformed email 7.4s
🟢 login form › rejects an unknown account 7.2s
🟢 login form › signs in and logs out 12.2s
🟢 tests/smoke.e2e.ts · 1 passed 6.0s
🟢 home lists the scenarios and opens one 6.0s

e2e 0.22.0 · 8m 9s · android-emulator · run artifacts

@github-actions

Copy link
Copy Markdown
Contributor

🟢 e2e ios agent: 1 flaky, 20 passed, 1 skipped

25 agent steps · 12 replayed from cache · 64 model calls · 513.1k tokens (82% cached) · $0.0358

⚠️ 1 flaky test passed on a retry

⚠️ act completes Gestures
tests-agent/scenarios.e2e.ts:266

ASSERTION_FAILED at step 4 of 4: agent.act "Complete this scenario as the screen instructs: long-press the first target, swipe the card left, then double-tap the last target", after 1m 24s and 15 model calls

agent.act failed: The long-press and left swipe reached Step 3. I double-tapped the visible “Double-tap me” target, but the screen remained on Step 3 with the same instruction, so the scenario did not complete.

  • Turn 12: tap_at({"x":177,"y":465}) → [tap_at] Tapped the point (202, 530); no listed control is there (under it: #n4497 other "Double-tap me" testid="double-tap-target").
  • Turn 13: tap_at({"x":177,"y":465}) → [tap_at] Tapped the point (202, 530); no listed control is there (under it: #n4533 other "Double-tap me" testid="double-tap-target").
  • Turn 14: double_tap({"target":"n4560"}) → [double_tap] Double-tapped #n4560.
  • Screen: dev.e2e.benchmark / Gestures

Evidence: screenshot, log

All 22 tests in 1 file
Test Agent Time
⚠️ tests-agent/scenarios.e2e.ts · 1 flaky, 20 passed, 1 skipped 25 steps · 64 calls 9m 12s
🟢 act completes Login Form 1 step 38.3s
🟢 act completes Infinite Scroll List 1 step 30.4s
🟢 act completes Modal Flow 1 step 9.9s
🟢 act completes Bottom Tabs 1 step 7.6s
🟢 act completes Text Input Variations 1 step 14.3s
🟢 act completes Broken Accessibility 2 steps · 10 calls 57.5s
🟢 act completes Vision Only 2 steps · 6 calls 30.1s
⚠️ act completes Gestures (1 failed attempt first) 1 step · 9 calls 36.8s
🟢 act completes Async States 1 step · 11 calls 47.2s
🟢 act completes Debounced Search 1 step · 1 call 28.1s
🟢 act completes Flattened Registration Form 2 steps · 1 call 29.0s
🟢 act completes Flattened Login 2 steps · 11 calls 59.9s
🟢 act completes Sticky Chrome Target 1 step 10.4s
🟢 act completes WebView Accessibility 1 step 12.1s
🟢 act completes Permission Prompt 1 step 11.0s
🟢 act completes Photo Picker 1 step · 2 calls 29.6s
🟢 act completes Product Catalog 1 step 10.0s
🟢 act completes Error Recovery 1 step 9.5s
🟢 act completes Choice Controls 1 step · 5 calls 34.1s
🟢 act completes Stripe PaymentSheet 1 step · 8 calls 35.5s
🟢 act completes Apple Pay 1 step 10.6s
⏭️ act completes Apple Pay Billing Address (skipped: the CI simulator's Apple Pay sheet skips the billing-address step, so the scenario cannot be completed there)

e2e 0.22.0 · 10m 41s · ios-simulator · run artifacts

@github-actions

Copy link
Copy Markdown
Contributor

🟢 e2e android agent: 20 passed

24 agent steps · 15 replayed from cache · 42 model calls · 270.5k tokens (77% cached) · $0.0215

All 20 tests in 1 file
Test Agent Time
🟢 tests-agent/scenarios.e2e.ts · 20 passed 24 steps · 42 calls 5m 53s
🟢 act completes Login Form 1 step 43.7s
🟢 act completes Infinite Scroll List 1 step 32.7s
🟢 act completes Modal Flow 1 step 17.1s
🟢 act completes Bottom Tabs 1 step 8.9s
🟢 act completes Text Input Variations 1 step 7.5s
🟢 act completes Broken Accessibility 2 steps · 5 calls 19.0s
🟢 act completes Vision Only 2 steps · 1 call 6.6s
🟢 act completes Gestures 1 step · 8 calls 24.4s
🟢 act completes Async States 1 step · 17 calls 43.3s
🟢 act completes Debounced Search 1 step 6.5s
🟢 act completes Huge Virtualized List 1 step 57.4s
🟢 act completes Flattened Registration Form 2 steps · 1 call 8.1s
🟢 act completes Flattened Login 2 steps · 6 calls 17.0s
🟢 act completes Sticky Chrome Target 1 step 7.0s
🟢 act completes WebView Accessibility 1 step · 4 calls 14.0s
🟢 act completes Permission Prompt 1 step 6.1s
🟢 act completes Product Catalog 1 step 8.0s
🟢 act completes Error Recovery 1 step 8.7s
🟢 act completes Choice Controls 1 step 8.0s
🟢 act completes Sequential Onboarding 1 step 9.2s

e2e 0.22.0 · 5m 54s · android-emulator · run artifacts

@okwasniewski okwasniewski added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Oct 30, 2026
@okwasniewski
okwasniewski merged commit f70645e into main Oct 30, 2026
45 of 48 checks passed
@okwasniewski
okwasniewski deleted the oskar/ios-benchmark-rerecord branch October 30, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. size:L Up to 499 changed lines, not counting tests, fixtures, translated docs, or the lockfile

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant