From a2d1138d5ca1c201a43e54e2591e736041972206 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 20 Feb 2026 04:16:37 +0100 Subject: [PATCH] Add Firefox to e2e test matrix on CI Locally only Chromium runs for fast feedback. On CI, tests also run on Firefox for broader coverage. Co-Authored-By: Claude Opus 4.6 --- Makefile | 2 +- playwright.config.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2a597790fc..ae71758a8a 100644 --- a/Makefile +++ b/Makefile @@ -531,7 +531,7 @@ test-mssql-migration: migrations.mssql.test migrations.individual.mssql.test .PHONY: playwright playwright: deps-frontend @# on GitHub Actions VMs, playwright's system deps are pre-installed - @$(NODE_VARS) pnpm exec playwright install $(if $(GITHUB_ACTIONS),,--with-deps) chromium $(PLAYWRIGHT_FLAGS) + @$(NODE_VARS) pnpm exec playwright install $(if $(GITHUB_ACTIONS),,--with-deps) chromium $(if $(CI),firefox) $(PLAYWRIGHT_FLAGS) .PHONY: test-e2e test-e2e: playwright diff --git a/playwright.config.ts b/playwright.config.ts index 68f1dbaa63..f566054f78 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -25,5 +25,11 @@ export default defineConfig({ permissions: ['clipboard-read', 'clipboard-write'], }, }, + ...env.CI ? [{ + name: 'firefox', + use: { + ...devices['Desktop Firefox'], + }, + }] : [], ], });