From 832344f8a3ac2adfe76239cc3acd92f5df177ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Thu, 3 Jul 2025 11:12:32 +0200 Subject: [PATCH] Fix theme spec --- tests/e2e/theme.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/theme.spec.ts b/tests/e2e/theme.spec.ts index ef6eca009..e0303cf8e 100644 --- a/tests/e2e/theme.spec.ts +++ b/tests/e2e/theme.spec.ts @@ -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 })