Files
agiledancers/agiledancers-fe/playwright.config.ts
2026-10-27 15:34:56 +01:00

27 lines
723 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './e2e',
fullyParallel: false,
workers: 1,
retries: 0,
timeout: 60_000,
reporter: 'list',
use: {
...devices['Desktop Chrome'],
baseURL: 'http://127.0.0.1:4200',
trace: 'retain-on-failure',
actionTimeout: 15_000,
screenshot: 'only-on-failure',
launchOptions: process.env['PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH']
? { executablePath: process.env['PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH'] }
: {},
},
webServer: {
command: 'npm start -- --host 127.0.0.1 --port 4200',
url: 'http://127.0.0.1:4200',
reuseExistingServer: !process.env['CI'],
timeout: 60_000,
},
});