import { defineConfig, devices } from '@playwright/test'; export default defineConfig({ testDir: './tests', fullyParallel: false, // Run tests sequentially for now (we're iterating on one flow) forbidOnly: !!process.env.CI, retries: process.env.CI ? 2 : 0, workers: 1, // One worker so we can watch logs easily reporter: [['html', { open: 'never' }], ['list']], use: { baseURL: 'http://localhost:5173', trace: 'on-first-retry', screenshot: 'only-on-failure', video: 'retain-on-failure', }, projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'] }, }, ], // We expect both servers to be running already // (user will run ./scripts/dev.sh or npm run dev in another terminal) });