diff --git a/.github/workflows/studio-e2e-multigres-test.yml b/.github/workflows/studio-e2e-multigres-test.yml index 125a23519f1..e37c731f91f 100644 --- a/.github/workflows/studio-e2e-multigres-test.yml +++ b/.github/workflows/studio-e2e-multigres-test.yml @@ -42,6 +42,10 @@ jobs: STUDIO_URL: http://localhost:8082 API_URL: http://localhost:8000 IS_PLATFORM: 'false' + # Run the entire suite for full coverage rather than bailing after a few + # failures, and keep retries low so the run stays fast. + PLAYWRIGHT_MAX_FAILURES: '0' + PLAYWRIGHT_RETRIES: '3' ANON_KEY: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJhbm9uIiwKICAgICJpc3MiOiAic3VwYWJhc2UtZGVtbyIsCiAgICAiaWF0IjogMTY0MTc2OTIwMCwKICAgICJleHAiOiAxNzk5NTM1NjAwCn0.dc_X5iR_VP_qT0zsiyj_I_OZ2T9FtRU2BBNWN8Bu4GE SERVICE_ROLE_KEY: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q diff --git a/e2e/studio/playwright.config.ts b/e2e/studio/playwright.config.ts index 9f3544355e0..c2751963def 100644 --- a/e2e/studio/playwright.config.ts +++ b/e2e/studio/playwright.config.ts @@ -48,8 +48,16 @@ export default defineConfig({ testDir: './features', testMatch: /.*\.spec\.ts/, forbidOnly: IS_CI, - retries: IS_CI ? 5 : 0, - maxFailures: 3, + retries: IS_CI + ? process.env.PLAYWRIGHT_RETRIES + ? Number(process.env.PLAYWRIGHT_RETRIES) + : 5 + : 0, + // 0 = run the whole suite regardless of how many specs fail. Defaults to 3 + // so a normal run bails early; override via env when you want full coverage. + maxFailures: process.env.PLAYWRIGHT_MAX_FAILURES + ? Number(process.env.PLAYWRIGHT_MAX_FAILURES) + : 3, expect: { timeout: 20_000, },