test: fix flaky in theme.spec.ts (#1708)

This commit is contained in:
Himself65
2023-03-27 23:11:31 -05:00
committed by GitHub
parent 4c6505cdf2
commit 316223b784
+2
View File
@@ -19,6 +19,8 @@ test.describe('Change Theme', () => {
expect(themeMode).toBe('light');
const lightButton = page.locator('[data-testid=change-theme-dark]');
await page.mouse.move(0, 0);
await page.waitForTimeout(50);
expect(await lightButton.isVisible()).toBe(false);
});