const { defineConfig, devices } = require('@playwright/test'); module.exports = defineConfig({ testDir: './tests', fullyParallel: false, // specs share/mutate DB fixtures tagged by module — keep runs serial to avoid cross-spec QA-TEST collisions workers: 1, retries: process.env.CI ? 1 : 0, reporter: [['html', { open: 'never' }], ['list']], timeout: 120_000, use: { baseURL: 'http://localhost:5173', trace: 'retain-on-failure', screenshot: 'only-on-failure', video: 'retain-on-failure', }, projects: [ { name: 'firefox', use: { ...devices['Desktop Firefox'] } }, ], webServer: { command: 'pnpm --dir ../.. dev', url: 'http://localhost:5173', reuseExistingServer: !process.env.CI, timeout: 120_000, }, });