0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-02-22 13:15:23 +01:00

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 <noreply@anthropic.com>
This commit is contained in:
silverwind 2026-02-20 04:16:37 +01:00
parent 6bc667d7d3
commit a2d1138d5c
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -25,5 +25,11 @@ export default defineConfig({
permissions: ['clipboard-read', 'clipboard-write'],
},
},
...env.CI ? [{
name: 'firefox',
use: {
...devices['Desktop Firefox'],
},
}] : [],
],
});