From ec2af45b6e5e411bdab7f2a580463009b5ed9702 Mon Sep 17 00:00:00 2001 From: Brian Love Date: Wed, 20 May 2026 15:19:16 -0700 Subject: [PATCH] test(website): add retries: CI ? 2 : 0 to playwright config Aligns with all cockpit cap configs and absorbs transient Next.js dev-server startup flake that has been showing up intermittently in the website-e2e gate. Local runs keep retries=0 for fast feedback. Identified during the post-Task-#4 e2e audit (item #3). Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/website/playwright.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/website/playwright.config.ts b/apps/website/playwright.config.ts index bf2c7a264..d87b83c4e 100644 --- a/apps/website/playwright.config.ts +++ b/apps/website/playwright.config.ts @@ -10,6 +10,9 @@ const reuseExistingServer = process.env['PLAYWRIGHT_REUSE_EXISTING_SERVER'] === export default defineConfig({ testDir: './e2e', fullyParallel: true, + // Match the cockpit configs: 2 retries on CI to absorb transient Next.js + // dev-server startup flake; 0 locally for fast feedback. + retries: process.env['CI'] ? 2 : 0, use: { baseURL, },