- Add 60s test timeout, 10s expect timeout - Add 15s action timeout, 30s navigation timeout - Fixes Firefox auth tests timing out at 30s
32 lines
805 B
TypeScript
32 lines
805 B
TypeScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: './tests/e2e',
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: process.env.CI ? 1 : undefined,
|
|
reporter: 'list',
|
|
timeout: 60000, // 60 seconds per test
|
|
expect: {
|
|
timeout: 10000, // 10 seconds for assertions
|
|
},
|
|
use: {
|
|
baseURL: 'http://127.0.0.1:5173',
|
|
trace: 'on-first-retry',
|
|
actionTimeout: 15000, // 15 seconds for actions
|
|
navigationTimeout: 30000, // 30 seconds for navigation
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: { ...devices['Desktop Chrome'] },
|
|
},
|
|
{
|
|
name: 'firefox',
|
|
use: { ...devices['Desktop Firefox'] },
|
|
},
|
|
],
|
|
// Note: Web server is managed by Docker Compose
|
|
});
|