fix:theme-flakiness (#20460)

This commit is contained in:
Tushar Bhatt
2025-03-31 21:18:06 +05:30
committed by GitHub
parent 69548e6ed0
commit 9ce94fbbfc
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ test.describe("Change App Theme Test", () => {
await page.waitForTimeout(3000);
const themeValue = await page.evaluate(() => localStorage.getItem("app-theme"));
expect(themeValue).toBe("system");
expect(themeValue).toBe("light");
const systemTheme = await page.evaluate(() => {
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";