import type { PlaywrightTestConfig } from "@playwright/test"; import { devices } from "@playwright/test"; const config: PlaywrightTestConfig = { testDir: "./tests/e2e", timeout: 30_000, expect: { timeout: 8000, }, fullyParallel: true, outputDir: "./tests/artifacts", workers: process.env.CI ? 1 : undefined, forbidOnly: !!process.env.CI, retries: process.env.CI ? 2 : 0, reporter: "list", globalSetup: "./tests/support/globalSetup", use: { actionTimeout: 0, baseURL: "http://localhost:3000", trace: "retain-on-failure", }, projects: [ { name: "chromium", use: { ...devices["Desktop Chrome"], }, }, { name: "firefox", use: { ...devices["Desktop Firefox"], }, }, { name: "webkit", use: { ...devices["Desktop Safari"], }, }, ], webServer: { command: "npm run start", port: 3000, }, }; export default config;