const { defineConfig, devices } = require('@playwright/test'); const baseURL = process.env.E2E_BASE_URL || 'http://127.0.0.1:7002'; module.exports = defineConfig({ testDir: './e2e', timeout: 30000, expect: { timeout: 10000 }, fullyParallel: false, forbidOnly: !!process.env.CI, retries: process.env.CI ? 1 : 0, workers: 1, reporter: [['list'], ['json', { outputFile: 'e2e/test-results.json' }]], use: { baseURL, headless: true, trace: 'retain-on-failure', screenshot: 'off', video: 'off', ...devices['Desktop Chrome'], }, });