also looking at this
fix(ios): hand a cold-start link to the page that subscribes for it
#216
8 files
+361
-19
| @@ -34,6 +34,13 @@ ok ios-shim — 6/6 cases, no zig | ||
| 34 | 34 | ok ios-runtime — 6/6 cases, zig served checkPermission, clipboardRead, clipboardWrite, getCurrentPosition, getDeviceInfo, log, requestPermission, share |
| 35 | 35 | ``` |
| 36 | 36 | |
| 37 | After the suite, each leg cold-starts the app through a link twice, from an | |
| 38 | XCUITest (`scripts/mobile-e2e/ios-uitests`). Only a UI test can answer the | |
| 39 | "Open in …?" prompt iOS shows for a custom scheme, and read the page back from | |
| 40 | an app SpringBoard launched, since that app has no console. One page only | |
| 41 | subscribes to `onLink`, seconds late, and must be handed the launch link once. | |
| 42 | The other also calls `getInitialURL`, and must not get the link twice. | |
| 43 | ||
| 37 | 44 | Before launch the harness grants the app location permission with |
| 38 | 45 | `simctl privacy` and puts the simulator at a fixed coordinate with |
| 39 | 46 | `simctl location`. The page must report that coordinate back from |