fix(ios): answer Safari's "Open in" prompt and inner-panel SpringBoard alerts

Merged
TH
1mo ago
+141-47

Summary

Two prompts answered ALERT_NOT_FOUND with "Open … in “App”?" on screen:

  • Safari's page prompt is an SFDialogView, not an alert, so it failed on every iPhone. The runner now finds it by that identifier and checks the answer against it.
  • SpringBoard's prompt (from openurl) was missed on the Duo's inner panel: springboard.frame names only the outer panel (466×678). Each SpringBoard alert is now placed, tapped and checked in its own window. An unreadable window refuses the tap.

Validation

  • pnpm check:affected --run --head 428c5ff490: passed.
  • Unit tests (iPhone 17 Pro sim): 35 alert/modal tests, plus new placement and Safari-dialog tests.
  • alert get → dismiss/accept → alert get (ALERT_NOT_FOUND), with screenshots. SpringBoard: rebased head. Safari: 3369c71c01 (same runner code):
PromptDeviceTap reference
SpringBoardDuo unfolded (alert center x=475.7)951×669, displayID 3
SpringBoardDuo folded466×678, displayID 1
SpringBoardiPhone 17 Pro402×874
SafariDuo unfolded951×669, displayID 3
SafariDuo folded466×678
SafariiPhone 17 Pro (base: ALERT_NOT_FOUND)402×874

Follow-up: SpringBoard coordinate taps, viewport and capture still use its first window (a 223×317 status-bar window on the Duo). Alert taps don't, because they route through the alert's own window. Fixing the rest needs a panel-aware SpringBoard window resolver (ADR 0025).

🤖 Generated with Claude Code