Files
pardis/playwright.config.js
Adrien W. b0aa5acf4b
Some checks failed
Tests et déploiement / deploy (push) Has been cancelled
Tests et déploiement / validate (push) Has been cancelled
Improved import security, added browser tests
2026-10-08 21:34:58 +02:00

23 lines
716 B
JavaScript

import { defineConfig } from '@playwright/test';
export default defineConfig({
testDir: './tests/e2e',
fullyParallel: false,
workers: 1,
timeout: 30_000,
reporter: 'list',
use: {
baseURL: 'http://127.0.0.1:4183',
timezoneId: 'Europe/Paris',
viewport: { width: 320, height: 640 },
// These tests use fresh contexts and synthetic fixtures; no user profile.
trace: 'off', screenshot: 'off', video: 'off',
launchOptions: process.env.PARDIS_CHROME_PATH ? { executablePath: process.env.PARDIS_CHROME_PATH } : {},
},
webServer: {
command: 'npm run preview -- --host 127.0.0.1 --port 4183 --strictPort',
url: 'http://127.0.0.1:4183',
reuseExistingServer: false,
},
});