import { defineConfig } from "@playwright/test"; export default defineConfig({ testDir: "./tests", 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: `/tmp/hy2-panel-ui-test-${Date.now()}.db`, POLLER_ENABLED: "false", ADMIN_USERNAME: "ui-review", ADMIN_PASSWORD: "ui-review-local-2026", SESSION_COOKIE_SECURE: "false", APP_URL: "http://localhost:3106", }, }, });