arbret/frontend/playwright.config.ts

26 lines
763 B
TypeScript
Raw Permalink Normal View History

2025-12-18 21:48:41 +01:00
import { defineConfig } from "@playwright/test";
export default defineConfig({
testDir: "./e2e",
2025-12-26 19:21:34 +01:00
// Run tests in parallel with multiple workers
// Each worker gets its own database and backend instance
workers: 8,
// Tests can run in parallel now that each worker has isolated database
fullyParallel: true,
// Test timeout (per test) - increased for e2e tests with database resets
timeout: 30000,
2025-12-18 21:48:41 +01:00
webServer: {
command: "npm run dev",
url: "http://localhost:3000",
reuseExistingServer: true,
},
use: {
baseURL: "http://localhost:3000",
// Action timeout (clicks, fills, etc.)
actionTimeout: 5000,
2025-12-25 00:06:32 +01:00
// Reduce screenshot/recording overhead
screenshot: "only-on-failure",
trace: "retain-on-failure",
2025-12-18 21:48:41 +01:00
},
});