Files
pardis/playwright.config.js
Adrien W. 5686ee5072
All checks were successful
Tests et déploiement / validate (push) Successful in 2m44s
Tests et déploiement / deploy (push) Successful in 51s
Added optionnal online storage and cross-client sync
2026-10-10 16:01:06 +02:00

27 lines
849 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,
}, {
command: 'node tests/sync-server.js',
url: 'http://127.0.0.1:3001/api/sync/health',
reuseExistingServer: false,
}],
});