2026-03-03 19:45:06 +01:00
|
|
|
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
testDir: './e2e',
|
2026-03-06 16:03:03 +01:00
|
|
|
fullyParallel: false,
|
2026-03-03 19:45:06 +01:00
|
|
|
forbidOnly: !!process.env.CI,
|
|
|
|
|
retries: process.env.CI ? 2 : 0,
|
2026-03-06 16:03:03 +01:00
|
|
|
workers: 1,
|
2026-03-03 19:45:06 +01:00
|
|
|
reporter: 'html',
|
2026-03-06 16:03:03 +01:00
|
|
|
timeout: 60000,
|
2026-03-03 19:45:06 +01:00
|
|
|
use: {
|
|
|
|
|
baseURL: 'http://localhost:3000',
|
|
|
|
|
screenshot: 'only-on-failure',
|
|
|
|
|
trace: 'on-first-retry',
|
2026-03-06 16:03:03 +01:00
|
|
|
navigationTimeout: 30000,
|
2026-03-03 19:45:06 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
projects: [
|
|
|
|
|
{
|
|
|
|
|
name: 'chromium',
|
|
|
|
|
use: { ...devices['Desktop Chrome'] },
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
webServer: {
|
|
|
|
|
command: 'bun dev',
|
|
|
|
|
url: 'http://localhost:3000',
|
|
|
|
|
reuseExistingServer: !process.env.CI,
|
|
|
|
|
},
|
|
|
|
|
});
|