Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

thread-opens-by-link.e2e.ts

20 lines522 Bytes

1import { expect } from "e2e";
2​
3import { test, WEB } from "./t3.ts";
4​
5test(
6 "A seeded thread opens by its link and shows its history",
7 WEB,
8 async ({ t3, app, screen }) => {
9 const project = await t3.project("demo");
10 const thread = await t3.thread({
11 project,
12 title: "Earlier work",
13 messages: ["first", "second"],
14 });
15 await t3.open(thread);
16​
17 await expect(screen.getByText("second fixture turn complete", { exact: false })).toBeVisible();
18 await app.screenshot("thread");
19 },
20);