SPB Git

Repository Public

playwright.config.ts 702 B 19 lines typescript

1import { defineConfig, devices } from "@playwright/test";23const PORT = process.env.PW_PORT ?? "3210";4const baseURL = process.env.PW_BASE_URL ?? `http://127.0.0.1:${PORT}`;56export default defineConfig({7  testDir: "./tests/e2e",8  fullyParallel: true,9  reporter: "list",10  use: { baseURL, trace: "retain-on-failure", reducedMotion: "reduce" },11  webServer: process.env.PW_BASE_URL12    ? undefined13    : { command: `pnpm start -p ${PORT}`, url: `${baseURL}/api/health`, reuseExistingServer: true, timeout: 120_000 },14  projects: [15    { name: "desktop", use: { ...devices["Desktop Chrome"], viewport: { width: 1440, height: 900 } } },16    { name: "mobile", use: { ...devices["Pixel 7"] } },17  ],18});19
Files main
Menu

Theme