Files
pedwfrontend/playwright.config.js
T
Robert Bond 478fa91004 Merged PR 2558: updated link on awaiting submission view allin welsh
updated link on awaiting submission view allin welsh

Related work items: #24389
2026-08-12 13:58:07 +00:00

32 lines
858 B
JavaScript

import { defineConfig } from "@playwright/test";
import dotenv from "dotenv";
const isCI = !!process.env.CI;
// Load .env silently in CI to avoid logs
dotenv.config({ debug: !isCI });
export default defineConfig({
testDir: "./pwe2e/tests",
timeout: 180000,
retries: isCI ? 1 : 0,
projects: [
{
name: "chromium",
timeout: 180000,
use: {
browserName: "chromium",
headless: isCI,
baseURL: process.env.BASE_URL || "http://localhost:3000",
screenshot: "only-on-failure",
video: "retain-on-failure",
trace: "retain-on-failure"
}
}
],
reporter: [
["html", { open: isCI ? "never" : "on-failure" }],
["junit", { outputFile: "test-results/results.xml" }]
]
});