Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

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

Himself65316223b78470
diff --git a/tests/parallels/theme.spec.ts b/tests/parallels/theme.spec.ts
index d8ad74b88c..6f218ac07c 100644
--- a/tests/parallels/theme.spec.ts
+++ b/tests/parallels/theme.spec.ts
@@ -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);
});