2025-12-18 21:48:41 +01:00
|
|
|
import { defineConfig } from "@playwright/test";
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
testDir: "./e2e",
|
2025-12-21 01:13:10 +01:00
|
|
|
// Run tests sequentially to avoid database conflicts
|
2025-12-22 09:31:00 +01:00
|
|
|
workers: 1,
|
2025-12-21 01:13:10 +01:00
|
|
|
// Ensure tests within a file run in order
|
|
|
|
|
fullyParallel: false,
|
2025-12-23 10:36:18 +01:00
|
|
|
// Test timeout (per test)
|
|
|
|
|
timeout: 10000,
|
2025-12-18 21:48:41 +01:00
|
|
|
webServer: {
|
|
|
|
|
command: "npm run dev",
|
|
|
|
|
url: "http://localhost:3000",
|
|
|
|
|
reuseExistingServer: true,
|
|
|
|
|
},
|
|
|
|
|
use: {
|
|
|
|
|
baseURL: "http://localhost:3000",
|
2025-12-23 10:36:18 +01:00
|
|
|
// Action timeout (clicks, fills, etc.)
|
|
|
|
|
actionTimeout: 5000,
|
2025-12-18 21:48:41 +01:00
|
|
|
},
|
|
|
|
|
});
|