Skip to content
Source
Sign inSign up

mobile-opens-a-seeded-thread.e2e.ts

21 lines683 Bytes

1import { expect } from "e2e";
2​
3import { IOS, test } from "./t3-mobile.ts";
4​
5test(
6 "The iOS app lists a seeded thread and opens its history",
7 IOS,
8 async ({ t3, app, screen }) => {
9 const project = await t3.project("demo");
10 await t3.thread({ project, title: "Earlier work", messages: ["first", "second"] });
11 await t3.open();
12​
13 const thread = screen.getByText("Earlier work", { exact: false }).first();
14 await expect(thread).toBeVisible({ timeout: 120_000 });
15 await app.screenshot("home");
16​
17 await thread.tap();
18 await expect(screen.getByText("second fixture turn complete", { exact: false })).toBeVisible();
19 await app.screenshot("thread");
20 },
21);