import { defineConfig, devices } from "@playwright/test"; export default defineConfig({ testDir: "./tests", testMatch: "**/browser.spec.ts", fullyParallel: false, forbidOnly: !!process.env.CI, retries: process.env.CI ? 2 : 0, workers: 1, reporter: "line", timeout: 120000, // 2 minutes per test use: { trace: "on-first-retry", headless: true }, projects: [ { name: "chromium", use: { ...devices["Desktop Chrome"] } } ] });