import { defineConfig, devices } from "@playwright/test"; // The display is verified against the real isolated stack through Nginx, which // is how a kiosk actually reaches it. DISPLAY_BASE_URL is supplied by the // verification harness. const baseURL = process.env.DISPLAY_BASE_URL || "http://127.0.0.1:5199"; export default defineConfig({ testDir: "./e2e", // Signage timing is real wall-clock timing; these are not unit tests. timeout: 120_000, expect: { timeout: 20_000 }, fullyParallel: false, workers: 1, retries: 0, reporter: [["list"]], use: { baseURL, ...devices["Desktop Chrome"], viewport: { width: 1280, height: 720 }, ignoreHTTPSErrors: true, serviceWorkers: "allow", }, projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }], });