2025-11-04 20:36:16 +01:00
|
|
|
import { defineConfig } from "@playwright/test";
|
2025-11-04 13:43:00 +01:00
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
use: {
|
2025-11-04 20:36:16 +01:00
|
|
|
baseURL: "http://localhost:8200",
|
2025-11-04 13:43:00 +01:00
|
|
|
headless: true,
|
2025-11-10 19:50:32 +01:00
|
|
|
// Capture screenshots on failure
|
|
|
|
|
screenshot: "only-on-failure",
|
|
|
|
|
// Capture video on failure
|
|
|
|
|
video: "retain-on-failure",
|
|
|
|
|
// Capture trace on failure for detailed debugging
|
|
|
|
|
trace: "retain-on-failure",
|
2025-11-04 13:43:00 +01:00
|
|
|
},
|
2025-11-04 20:36:16 +01:00
|
|
|
testDir: "playwright-tests",
|
2025-11-04 13:43:00 +01:00
|
|
|
timeout: 120000,
|
|
|
|
|
workers: 1,
|
2025-11-10 19:50:32 +01:00
|
|
|
reporter: process.env.CI ? [["html"], ["list"], ["github"]] : "list",
|
2025-11-04 21:35:15 +01:00
|
|
|
outputDir: "test-results/",
|
2025-11-04 13:43:00 +01:00
|
|
|
});
|