The best way to control Claude Code, Codex and more from any computer or phone

main
ts 25 lines 929 Bytes
Raw
1 import { expect } from "e2e";
2
3 import { test, WEB } from "./t3.ts";
4
5 test(
6 "Thread search finds an accented message by a short unaccented word",
7 WEB,
8 async ({ t3, app, screen }) => {
9 const project = await t3.project("demo");
10 const thread = await t3.thread({ project, title: "Weekly notes", messages: ["Start"] });
11 await t3.open(thread);
12
13 // Search reads what the user wrote; messages the CLI sends count as an agent's.
14 const composer = screen.getByRole("textbox");
15 await composer.pressSequentially("École fermée à Lyon");
16 await composer.press("Enter");
17 await expect(screen.getByText("second fixture turn complete", { exact: false })).toBeVisible();
18
19 await screen.getByRole("combobox", "Search threads").fill("fermée ec");
20 await expect(screen.getByRole("listbox", "Thread search results")).toContainText(
21 "École fermée",
22 );
23 await app.screenshot("search");
24 },
25 );