fix(ios): answer Safari's "Open in" prompt and inner-panel SpringBoard alerts
Merged
TH
1mo ago+141+141+012345678901234567890123456789-47-47-01234567890123456789
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.framenames 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):
| Prompt | Device | Tap reference |
|---|---|---|
| SpringBoard | Duo unfolded (alert center x=475.7) | 951×669, displayID 3 |
| SpringBoard | Duo folded | 466×678, displayID 1 |
| SpringBoard | iPhone 17 Pro | 402×874 |
| Safari | Duo unfolded | 951×669, displayID 3 |
| Safari | Duo folded | 466×678 |
| Safari | iPhone 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