updated link on awaiting submission view allin welsh Related work items: #24389
32 lines
858 B
JavaScript
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" }]
|
|
]
|
|
});
|