The 15s timeout was too tight for the dev server under concurrent test load, causing widespread toBeVisible failures on first attempt across 40+ smoke tests. Increasing to 20s gives the dev server adequate time to render without masking real regressions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
19 lines
520 B
TypeScript
19 lines
520 B
TypeScript
import { defineConfig } from '@playwright/test'
|
|
|
|
export default defineConfig({
|
|
testDir: './tests/smoke',
|
|
timeout: 20_000,
|
|
retries: 2,
|
|
workers: 1,
|
|
use: {
|
|
baseURL: process.env.BASE_URL || 'http://localhost:5201',
|
|
headless: true,
|
|
},
|
|
projects: [{ name: 'chromium', use: { browserName: 'chromium' } }],
|
|
webServer: {
|
|
command: `pnpm dev --port ${process.env.BASE_URL?.match(/:(\d+)/)?.[1] || '5201'}`,
|
|
url: process.env.BASE_URL || 'http://localhost:5201',
|
|
reuseExistingServer: true,
|
|
},
|
|
})
|