27 lines
849 B
JavaScript
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,
|
|
}],
|
|
});
|