Open History to see the last commit
1import { expect } from "e2e";
2
3import { test, WEB } from "./t3.ts";
4
5test(
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);