diff --git a/src/renderer/__helpers__/visual.setup.ts b/src/renderer/__helpers__/visual.setup.ts index fddd2c2bd..8869ec133 100644 --- a/src/renderer/__helpers__/visual.setup.ts +++ b/src/renderer/__helpers__/visual.setup.ts @@ -150,6 +150,8 @@ function disableAnimations(): void { } beforeEach(async () => { + // Interactions are driven by Playwright, outside React's act environment. + (globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = false; disableAnimations(); vi.useFakeTimers({ toFake: ['Date'], now: FIXED_NOW }); diff --git a/vitest.config.mts b/vitest.config.mts index 64053c25d..9bb5d306d 100644 --- a/vitest.config.mts +++ b/vitest.config.mts @@ -19,6 +19,7 @@ export default defineConfig({ globals: true, pool: 'vmThreads', isolate: true, + testTimeout: 10_000, clearMocks: true, unstubEnvs: true, unstubGlobals: true,