Files

32 lines
653 B
TypeScript
Raw Permalink Normal View History

2026-06-12 15:53:26 +02:00
import { defineConfig, devices } from '@playwright/test';
2025-09-17 19:29:13 +02:00
export default defineConfig({
2026-06-12 15:53:26 +02:00
expect: {
timeout: 5000
},
forbidOnly: !!process.env.CI,
2026-08-10 08:38:37 +02:00
fullyParallel: true,
2026-06-12 15:53:26 +02:00
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] }
}
],
2026-08-10 08:38:37 +02:00
reporter: 'line',
retries: process.env.CI ? 2 : 0,
testDir: 'tests/e2e',
testMatch: ['**/*.e2e.ts'],
timeout: 30000,
use: {
baseURL: 'http://localhost:8181',
trace: 'on-first-retry'
},
2025-09-17 19:29:13 +02:00
webServer: {
command: 'npm run build && npx http-server ./dist -p 8181',
port: 8181,
2026-08-10 08:38:37 +02:00
reuseExistingServer: !process.env.CI,
timeout: 120000
},
workers: process.env.CI ? 1 : undefined
2025-09-17 19:29:13 +02:00
});