diff --git a/scripts/e2e.config.ts b/scripts/e2e.config.ts index 4f96f6a518..c6d2474626 100644 --- a/scripts/e2e.config.ts +++ b/scripts/e2e.config.ts @@ -173,7 +173,7 @@ export default { name: "ios", engine: mobile({ platform: "ios", - device: simlock("iPhone 18 Pro"), + device: simlock("iPad Pro 13-inch (M5)"), session: "t3-scenarios", }), app: { @@ -202,6 +202,8 @@ export default { workers: 1, timeout: 300_000, assertionTimeout: 15_000, + actionTimeout: 120_000, + cleanupTimeout: 120_000, video: "on", trace: "on", reporters: ["list", "markdown"], diff --git a/scripts/scenarios/t3-mobile.ts b/scripts/scenarios/t3-mobile.ts index 154030dd7a..3e9852587e 100644 --- a/scripts/scenarios/t3-mobile.ts +++ b/scripts/scenarios/t3-mobile.ts @@ -66,7 +66,7 @@ export const test = base.extend<{ t3: MobileT3 }>({ // iOS asks before a link opens another app. const openLink = async (url: string) => { await device.openLink(url, { app: APP_ID }); - await device.alert("accept").catch(() => {}); + await device.unstable_raw.client.command.alert({ ...device.unstable_raw.selection, action: "accept", timeoutMs: 5_000 }).catch(() => {}); }; const metro = encodeURIComponent(`http://${MOBILE.host}:${MOBILE.metroPort}`); await openLink(