Files
kca/e2e/playwright.config.js

23 lines
601 B
JavaScript

// Playwright configuration for the KCA browser suite.
//
// The default target is the Docker Compose stack on :8080. Point
// KCA_BASE_URL at another port when testing a local Trunk/Granian setup.
const { defineConfig } = require("@playwright/test");
const baseURL = process.env.KCA_BASE_URL || "http://localhost:8080";
module.exports = defineConfig({
testDir: "./tests",
timeout: 60_000,
expect: { timeout: 15_000 },
fullyParallel: false,
workers: 1,
reporter: [["list"]],
use: {
baseURL,
headless: true,
ignoreHTTPSErrors: true,
trace: "retain-on-failure",
},
});