diff --git a/.claude/worktrees/website-iteration b/.claude/worktrees/website-iteration deleted file mode 160000 index 510befe14..000000000 --- a/.claude/worktrees/website-iteration +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 510befe14ac3482c89f883f52821604f143fa5f2 diff --git a/.claude/worktrees/zealous-jones b/.claude/worktrees/zealous-jones deleted file mode 160000 index 413d3fa51..000000000 --- a/.claude/worktrees/zealous-jones +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 413d3fa51304735e59092675750c26631dab4ee1 diff --git a/apps/cockpit/playwright.config.ts b/apps/cockpit/playwright.config.ts index d4b895eec..5f1f45101 100644 --- a/apps/cockpit/playwright.config.ts +++ b/apps/cockpit/playwright.config.ts @@ -1,4 +1,4 @@ -import { defineConfig } from '@playwright/test'; +import { defineConfig, devices } from '@playwright/test'; const baseURL = process.env['BASE_URL'] ?? 'http://127.0.0.1:4201'; const shouldStartLocalServer = !process.env['BASE_URL']; @@ -10,6 +10,16 @@ export default defineConfig({ use: { baseURL, }, + // Declare chromium as the only browser project. Without this, Playwright + // validates ALL default browsers (chromium + webkit + firefox) on test + // start and prints a long "missing system dependencies" warning for the + // browsers we don't run, even though tests pass cleanly on chromium. + projects: [ + { + name: 'chromium', + use: { ...devices['Desktop Chrome'] }, + }, + ], webServer: shouldStartLocalServer ? { command: 'npx next dev . --port 4201', diff --git a/apps/website/playwright.config.ts b/apps/website/playwright.config.ts index 3b8744417..bf2c7a264 100644 --- a/apps/website/playwright.config.ts +++ b/apps/website/playwright.config.ts @@ -1,4 +1,4 @@ -import { defineConfig } from '@playwright/test'; +import { defineConfig, devices } from '@playwright/test'; const localHost = '127.0.0.1'; const localPort = process.env['WEBSITE_E2E_PORT'] ?? '4308'; @@ -13,6 +13,15 @@ export default defineConfig({ use: { baseURL, }, + // Declare chromium as the only browser project — see the matching comment + // in apps/cockpit/playwright.config.ts. Suppresses the misleading + // "missing system dependencies" warning for webkit/firefox. + projects: [ + { + name: 'chromium', + use: { ...devices['Desktop Chrome'] }, + }, + ], webServer: shouldStartLocalServer ? { command: `npx next dev . --hostname ${localHost} --port ${localPort}`,