Files
comarques-de-catalunya/playwright.config.js
Jaume Garriga Maestre 2f90d41be3
Some checks failed
CI · Test & Deploy / Playwright tests (push) Failing after 3m55s
CI · Test & Deploy / Deploy to VPS (push) Has been skipped
ci: fix runner image (node:20), add Playwright smoke tests
- Change runner to node:20 (has bash) instead of node:20-alpine
- Add tests/smoke.spec.js: 7 tests covering title, welcome screen,
  COMARCA_PATHS count (43), Lluçanès/Moianès presence, and
  filter counts (coastal=12, interior=21, mountain=10)
- Add playwright.config.js
- Fix CI workflow: use 'serve' for static server, proper SSH key setup
2026-05-14 11:11:39 +02:00

17 lines
378 B
JavaScript

// playwright.config.js
const { defineConfig, devices } = require('@playwright/test');
module.exports = defineConfig({
testDir: './tests',
timeout: 30_000,
retries: 0,
reporter: 'list',
use: {
baseURL: process.env.APP_URL || 'http://localhost:9090',
headless: true,
},
projects: [
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
],
});