From 316223b784707613ba877123d4e1c705e6ebe029 Mon Sep 17 00:00:00 2001 From: Himself65 Date: Mon, 27 Mar 2023 23:11:31 -0500 Subject: [PATCH] test: fix flaky in `theme.spec.ts` (#1708) --- tests/parallels/theme.spec.ts | 2 ++ 1 file changed, 2 insertions(+) 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); });