diff --git a/scripts/e2e.config.ts b/scripts/e2e.config.ts index 989d63326a..9f5d01687f 100644 --- a/scripts/e2e.config.ts +++ b/scripts/e2e.config.ts @@ -159,7 +159,7 @@ export default { name: "ios", engine: mobile({ platform: "ios", - device: simlock("iPhone 18 Pro"), + device: simlock("iPad mini (A17 Pro)"), session: "t3-scenarios", }), app: { @@ -188,6 +188,7 @@ export default { workers: 1, timeout: 300_000, assertionTimeout: 15_000, + actionTimeout: 120_000, video: "on", trace: "on", reporters: ["list", "markdown"], diff --git a/scripts/scenarios/start-app.ts b/scripts/scenarios/start-app.ts index 5dee3f26c1..898335338d 100644 --- a/scripts/scenarios/start-app.ts +++ b/scripts/scenarios/start-app.ts @@ -75,7 +75,7 @@ const prepareHome = Effect.fn("startApp.prepareHome")(function* (home: string) { driver, { driver, - enabled: false, + enabled: driver === "opencode", ...(driver === "codex" ? { config: { binaryPath: noModel } } : {}), }, ]), diff --git a/scripts/scenarios/t3.ts b/scripts/scenarios/t3.ts index 24bb6e73d3..4ac8438928 100644 --- a/scripts/scenarios/t3.ts +++ b/scripts/scenarios/t3.ts @@ -25,6 +25,7 @@ export interface T3State { readonly title: string; readonly messages: ReadonlyArray; readonly model?: string; + readonly provider?: string; }) => Promise; } @@ -99,12 +100,13 @@ export function makeState(home: string, env: NodeJS.ProcessEnv = {}) { readonly title: string; readonly messages: ReadonlyArray; readonly model?: string; + readonly provider?: string; }) { // Exit code 2 means the turn waits for an answer, which a scenario may want to start from. const turn = (args: ReadonlyArray) => cli(["thread", ...args, "--wait", "--json"], [0, 2]); const [first = "Start", ...rest] = input.messages; - const replay = ["--provider", "devReplay", "--model", input.model ?? "multi-turn"]; + const replay = ["--provider", input.provider ?? "devReplay", "--model", input.model ?? "multi-turn"]; const started = yield* turn(["start", input.project, first, "--title", input.title, ...replay]); const { threadId } = yield* decodeLaunched(started.stdout); for (const message of rest) yield* turn(["send", threadId, message]);