test(e2e): use canonical theme preference
CI and Deploy / test (pull_request) Successful in 4m54s
CI and Deploy / deploy (pull_request) Has been skipped

This commit is contained in:
cesnimda
2026-08-15 15:57:00 +02:00
parent cd091159f3
commit 6b02e3f5d1
2 changed files with 5 additions and 5 deletions
+1 -2
View File
@@ -77,8 +77,7 @@ test("discovery remains usable across widths and opens the reviewed import", asy
}
await page.evaluate(() => {
const userKey = window.localStorage.getItem("authUserKey") || "anon";
window.localStorage.setItem(`themeMode:${userKey}`, "dark");
window.localStorage.setItem("jobtracker.themeMode", "dark");
});
await page.reload();
await expect(page.locator("html")).toHaveAttribute("data-color-scheme", "dark");