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

main
ts 24 lines 800 Bytes
Raw
1 import { expect } from "e2e";
2
3 import { test, WEB } from "./t3.ts";
4
5 test(
6 "An expanded command shows the JSON line it printed, keys and all",
7 WEB,
8 async ({ t3, app, screen }) => {
9 const project = await t3.project("demo");
10 const thread = await t3.thread({
11 project,
12 title: "JSON output",
13 messages: ["Print the JSON"],
14 model: "command-output",
15 });
16 await t3.open(thread);
17
18 await expect(screen.getByText("The command printed one JSON line.")).toBeVisible();
19 await screen.getByRole("button", "Worked for", { exact: false }).tap();
20 await screen.getByRole("button", "node -e", { exact: false }).first().tap();
21 await app.screenshot("expanded");
22 await expect(screen.getByText('"requestId":"keep-me"', { exact: false })).toBeVisible();
23 },
24 );