mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 03:26:47 +08:00
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');
|
||||
|
||||
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