import { defineConfig } from "@playwright/test"; const databasePath = process.env.HY2_E2E_DATABASE ??= `/tmp/hy2-panel-ui-test-${Date.now()}.db`; export default defineConfig({ testDir: "./tests", testMatch: "**/*.spec.ts", workers: 1, timeout: 90000, use: { baseURL: "http://localhost:3106", viewport: { width: 1440, height: 1000 }, trace: "retain-on-failure", }, webServer: { command: "npm run dev -- --port 3106", url: "http://localhost:3106/login", reuseExistingServer: false, env: { DATABASE_PATH: databasePath, POLLER_ENABLED: "false", ADMIN_USERNAME: "ui-review", ADMIN_PASSWORD: "ui-review-local-2026", SESSION_COOKIE_SECURE: "false", APP_URL: "http://localhost:3106", }, }, });