Files
github--github-mcp-server/ui/playwright.config.ts
Matt Holloway 2e152ada61 add e2e tests
2026-02-04 15:47:10 +00:00

39 lines
728 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./e2e",
testMatch: "**/*.spec.ts",
timeout: 20_000,
expect: { timeout: 5_000 },
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: [
["list"],
["html", { open: "never" }],
],
use: {
baseURL: "http://localhost:5173",
trace: "on-first-retry",
screenshot: "only-on-failure",
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
webServer: {
command: "npx vite --port 5173",
port: 5173,
reuseExistingServer: !process.env.CI,
},
});