test: fix flaky in theme.spec.ts (#1708)
This commit is contained in:
@@ -19,6 +19,8 @@ test.describe('Change Theme', () => {
|
|||||||
expect(themeMode).toBe('light');
|
expect(themeMode).toBe('light');
|
||||||
|
|
||||||
const lightButton = page.locator('[data-testid=change-theme-dark]');
|
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);
|
expect(await lightButton.isVisible()).toBe(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user