Fix theme spec

This commit is contained in:
Rūdolfs Ošiņš
2025-07-03 11:46:39 +02:00
parent a55a138a7f
commit 832344f8a3
+2 -2
View File
@@ -9,7 +9,7 @@ test("default theme", async ({ page }) => {
test("theme persistence", async ({ page }) => {
await page.goto("/repos");
await expect(page.getByRole("button", { name: "markdown" })).toBeVisible();
await page.getByRole("button", { name: "Settings" }).click();
await page.getByRole("button", { name: "Settings", exact: true }).click();
await page
.getByRole("button", { name: "icon-sun Light", exact: true })
@@ -24,7 +24,7 @@ test("theme persistence", async ({ page }) => {
test("change theme", async ({ page }) => {
await page.goto("/repos");
await expect(page.getByRole("button", { name: "markdown" })).toBeVisible();
await page.getByRole("button", { name: "Settings" }).click();
await page.getByRole("button", { name: "Settings", exact: true }).click();
await page
.getByRole("button", { name: "icon-sun Light", exact: true })