t3-code-android-nightly/scripts/scenarios/mobile-opens-a-seeded-thread.e2e.ts
Julius Marminge ae142932d0
feat(scripts): scenarios prove a fix in the real app with e2e, on web and iOS (#34007)
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-10 15:45:07 -08:00

21 lines
683 B
TypeScript

import { expect } from "e2e";
import { IOS, test } from "./t3-mobile.ts";
test(
"The iOS app lists a seeded thread and opens its history",
IOS,
async ({ t3, app, screen }) => {
const project = await t3.project("demo");
await t3.thread({ project, title: "Earlier work", messages: ["first", "second"] });
await t3.open();
const thread = screen.getByText("Earlier work", { exact: false }).first();
await expect(thread).toBeVisible({ timeout: 120_000 });
await app.screenshot("home");
await thread.tap();
await expect(screen.getByText("second fixture turn complete", { exact: false })).toBeVisible();
await app.screenshot("thread");
},
);