@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 22 lines 788 Bytes
Raw
1 import { expect } from "e2e";
2
3 import { test, WEB } from "./t3.ts";
4
5 test(
6 "The right panel shortcut closes and reopens the Issues panel",
7 WEB,
8 async ({ t3, app, browser, screen }) => {
9 await t3.project("demo");
10 await t3.open("/issues?selectedProjectId=demo&tracker=github&scope=example/demo&key=42");
11
12 const toggle = screen.getByRole("button", "Toggle right panel");
13 await screen.getByRole("button", { name: "Toggle right panel", pressed: true }).waitFor();
14
15 await browser.keyboard.press("ControlOrMeta+Alt+b");
16 await app.screenshot("after-close-shortcut");
17 await expect(toggle).toHaveAttribute("aria-pressed", "false");
18
19 await browser.keyboard.press("ControlOrMeta+Alt+b");
20 await expect(toggle).toHaveAttribute("aria-pressed", "true");
21 },
22 );