Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/SantaClaas/enterprise-web-development.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334import { defineConfig, devices } from "@playwright/test";
export default defineConfig({ testDir: "./e2e", fullyParallel: true, forbidOnly: !!process.env.CI, retries: process.env.CI ? 2 : 0, reporter: "html", use: { baseURL: "http://localhost:5173", trace: "on-first-retry", }, projects: [ { name: "setup", testMatch: "**/auth.setup.ts", }, { name: "chromium", use: { ...devices["Desktop Chrome"], storageState: "e2e/.auth/user.json", }, dependencies: ["setup"], }, ], // Requires the backend to be running on :8080 webServer: { command: "pnpm dev", url: "http://localhost:5173", reuseExistingServer: !process.env.CI, },});