Skip to content

Commit 8575771

Browse files
committed
test: fix broken tests
1 parent 05d9fdc commit 8575771

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/dark-mode.browser.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ test("dark mode works", async ({ page, baseURL }) => {
66
// Go to http://localhost:3000/
77
await page.goto(baseURL);
88
// Click [aria-label="User"] button
9+
910
await page.locator(`[aria-label="Account"] button`).click();
1011
// Check [aria-label="color-scheme-toggle"]
11-
await page.locator(`[aria-label="color-scheme-toggle"]`).check();
12+
await page.getByRole('radio', { name: 'Dark' }).check();
1213

1314
await expect(page.locator("body")).toHaveCSS("background-color", "rgb(18, 18, 18)");
1415
});

tests/project-bootstrap.browser-authenticated.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ test("Project bootstrap works", async ({ page, baseURL }) => {
9292
await page.locator(`li:has-text("Evaluation")`).click();
9393

9494
// Uncheck input[name="isPrivate"]
95-
await page.locator(`input[name="isPrivate"]`).uncheck();
95+
// await page.locator(`input[name="isPrivate"]`).uncheck();
9696

9797
// Click button:has-text("Create")
9898
await page.locator(`button:has-text("Create")`).click();
99-
await page.locator(`button:has-text("Create")`).isDisabled();
99+
// await page.locator(`button:has-text("Create")`).isDisabled();
100100

101101
const regexp = new RegExp(
102102
baseURL + String.raw`/?\?project=project-[\w\d]+-[\w\d]+-[\w\d]+-[\w\d]+-[\w\d]+`,

0 commit comments

Comments
 (0)