test(e2e): use canonical theme preference
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user