import { defineConfig, devices } from "@playwright/test"; const baseURL = process.env.BASE_URL ?? "http://127.0.0.1:8000"; export default defineConfig({ testDir: "tests", fullyParallel: true, forbidOnly: Boolean(process.env.CI), timeout: 10_000, retries: 2, workers: process.env.CI ? 1 : undefined, reporter: "html", use: { baseURL, trace: "on-first-retry", video: "on-first-retry", }, projects: [ { name: "chromium", use: devices["Desktop Chrome"], }, { name: "firefox", use: devices["Desktop Firefox"], }, { name: "webkit", use: devices["Desktop Safari"], }, ], webServer: { url: baseURL, command: "npm start", stdout: "ignore", stderr: "ignore", reuseExistingServer: true, }, });