import { defineConfig } from "@playwright/test"; const baseURL = process.env.E2E_BASE_URL ?? "http://localhost:18080"; export default defineConfig({ testDir: "./tests", outputDir: "./test-results", globalSetup: "./global-setup.ts", // Single throwaway backend: run serially so mutating specs (routes, profile) // cannot race each other. fullyParallel: false, workers: 1, retries: 0, reporter: [["list"], ["html", { open: "never", outputFolder: "./playwright-report" }]], use: { baseURL, headless: true, viewport: { width: 1280, height: 800 }, actionTimeout: 15_000, navigationTimeout: 30_000, trace: "retain-on-failure", screenshot: "only-on-failure", }, expect: { timeout: 15_000, }, });