test: fix flaky in theme.spec.ts (#1708)
This commit is contained in:
1 parent
4c6505cdf2
commit
316223b784
1 file changed
+2
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user