import { defineConfig } from "@playwright/test"; const PORT = process.env.PORT ?? "8080"; const BASE_URL = process.env.E2E_BASE_URL ?? `http://127.0.0.1:${PORT}`; export default defineConfig({ testDir: "./tests/e2e", timeout: 30_000, expect: { timeout: 5_000, }, fullyParallel: false, workers: 1, retries: 0, reporter: [["list"]], use: { baseURL: BASE_URL, trace: "retain-on-failure", screenshot: "only-on-failure", video: "retain-on-failure", actionTimeout: 10_000, navigationTimeout: 15_000, viewport: { width: 1280, height: 720 }, locale: "en-US", timezoneId: "UTC", colorScheme: "light", }, projects: [ { name: "chromium", use: { browserName: "chromium", }, }, ], webServer: { command: "deno task dev", url: BASE_URL, reuseExistingServer: !process.env.CI, timeout: 120_000, env: { PORT, HOSTNAME_DENO: "127.0.0.1", E2E_TEST: "true", }, }, });