NewsArchiverV2/tests/playwright/playwright.config.ts
Jarian Cottingham dbdbbc73ed feat: add Playwright E2E tests to CI
- 15 tests: home, listing, detail, nav, status, RSS/Atom, theme toggle
- CI e2e job seeds test DB (80 articles, 3 sources) in Docker container
- Tests run in mcr.microsoft.com/playwright:v1.51.0-jammy image
- Port 5000 published for health check from runner
- node_modules + test-results excluded from git
2026-08-21 15:45:00 +00:00

16 lines
438 B
TypeScript

import { defineConfig } from '@playwright/test';
export default defineConfig({
testDir: './tests',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: process.env.CI ? [['list'], ['html']] : 'list',
use: {
baseURL: process.env.APP_URL || 'http://localhost:5000',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
});