2026-07-27 01:17:18 +02:00
|
|
|
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
testDir: './playwright-tests',
|
|
|
|
|
fullyParallel: false,
|
|
|
|
|
forbidOnly: !!process.env.CI,
|
|
|
|
|
retries: 0,
|
|
|
|
|
workers: 1,
|
|
|
|
|
reporter: [['list'], ['json', { outputFile: './playwright-tests/playwright-report.json' }]],
|
|
|
|
|
use: {
|
|
|
|
|
baseURL: 'http://localhost:5173',
|
|
|
|
|
trace: 'on-first-retry',
|
|
|
|
|
screenshot: 'only-on-failure',
|
|
|
|
|
},
|
|
|
|
|
webServer: [
|
|
|
|
|
{
|
2026-07-27 03:15:30 +02:00
|
|
|
command: 'cd ../backend && npm run dev:ci',
|
2026-07-27 01:17:18 +02:00
|
|
|
url: 'http://localhost:3001/api/health',
|
|
|
|
|
reuseExistingServer: true,
|
|
|
|
|
timeout: 120000,
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-07-27 03:15:30 +02:00
|
|
|
command: 'npm run dev -- --port 5173',
|
2026-07-27 01:17:18 +02:00
|
|
|
url: 'http://localhost:5173',
|
|
|
|
|
reuseExistingServer: true,
|
|
|
|
|
timeout: 120000,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
projects: [
|
|
|
|
|
{
|
|
|
|
|
name: 'chromium',
|
|
|
|
|
use: { ...devices['Desktop Chrome'], viewport: { width: 1600, height: 1000 } },
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
});
|