Files
admin-frontend-domain/playwright.config.ts
T
Copilot 04fbddb979 Stabilize CI runtime for updated deps and unblock Dependabot auto-format flow (#185)
* chore: apply ci and dependabot remediation changes

* chore: auto-fix linting and formatting issues

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-08-01 10:58:33 +08:00

33 lines
959 B
TypeScript

import { defineConfig, devices } from "@playwright/test"
const baseURL = process.env.E2E_BASE_URL || "http://localhost:5173"
export default defineConfig({
testDir: "./tests/e2e",
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
workers: 1,
reporter: process.env.CI ? [["github"], ["html", { open: "never" }]] : "list",
use: {
baseURL,
trace: "on-first-retry",
screenshot: "only-on-failure",
video: process.env.CI ? "retain-on-failure" : "off",
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
webServer: process.env.E2E_SKIP_WEBSERVER
? undefined
: {
command: "npm run dev -- --host 127.0.0.1",
url: baseURL + "/dashboard/login",
reuseExistingServer: !process.env.CI,
timeout: 120_000,
},
})