import { defineConfig, devices } from "@playwright/test"; const isCI = !!process.env.CI; export default defineConfig({ testDir: "./tests", testMatch: "**/*.spec.ts", globalSetup: "./globalSetup.ts", fullyParallel: false, forbidOnly: isCI, retries: isCI ? 2 : 0, workers: 1, reporter: isCI ? [["html", { open: "never" }]] : [["html"]], timeout: 4 * 60 * 1000, expect: { timeout: 10_000, }, use: { baseURL: "http://localhost:4000", trace: "on-first-retry", screenshot: "only-on-failure", actionTimeout: 15_000, navigationTimeout: 30_000, }, projects: [ { name: "chromium", use: { ...devices["Desktop Chrome"] }, }, ], });