diff --git a/playwright.config.ts b/playwright.config.ts index e259c74ac..92c2d11fd 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -16,8 +16,8 @@ export default defineConfig({ fullyParallel: true, /* Fail the build on CI if you accidentally left test.only in the source code. */ forbidOnly: !!process.env.CI, - /* Retry on CI only */ - retries: process.env.CI ? 2 : 0, + /* Retry on CI only - increased for better flaky test handling */ + retries: process.env.CI ? 3 : 0, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ reporter: 'html', /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ diff --git a/vitest.config.ts b/vitest.config.ts index 7640eb129..765a2ec11 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -17,6 +17,7 @@ export default defineConfig({ globals: true, environment: 'happy-dom', setupFiles: ['./vitest.setup.ts'], + retry: process.env.CI ? 2 : 0, include: [ 'tests-ui/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}', 'src/components/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'