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
| 1 | import { expect } from "e2e"; |
| 2 | |
| 3 | import { test, WEB } from "./t3.ts"; |
| 4 | |
| 5 | test( |
| 6 | "Tab moves from the add-project Git URL field to its submit button", |
| 7 | WEB, |
| 8 | async ({ t3, app, screen, browser }) => { |
| 9 | await t3.project("demo"); |
| 10 | await t3.open(); |
| 11 | |
| 12 | await screen.getByRole("button", "Add project").tap(); |
| 13 | await screen.getByText("Git URL").tap(); |
| 14 | await screen.getByRole("combobox").fill("https://github.com/pingdotgg/t3code.git"); |
| 15 | const submit = screen.getByRole("button", "Continue (Enter)"); |
| 16 | await expect(submit).toBeEnabled(); |
| 17 | |
| 18 | await browser.keyboard.press("Tab"); |
| 19 | await app.screenshot("after-tab"); |
| 20 | await expect(submit).toBeFocused(); |
| 21 | }, |
| 22 | ); |