@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 03:37 UTC

main
ts 25 lines 962 Bytes
Raw
1 import { expect } from "e2e";
2
3 import { test, WEB } from "./t3.ts";
4
5 test(
6 "Thread search finds a curly apostrophe next to a two-character Chinese 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("部署 John’s service after migration");
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("部署 John’s");
20 await expect(screen.getByRole("listbox", "Thread search results")).toContainText(
21 "John’s service",
22 );
23 await app.screenshot("search");
24 },
25 );