const { defineConfig, devices } = require('@playwright/test'); module.exports = defineConfig({ testDir: './tests/e2e', fullyParallel: false, workers: 1, timeout: 45_000, expect: { timeout: 10_000, }, retries: process.env.CI ? 1 : 0, reporter: process.env.CI ? [['github'], ['html', { open: 'never' }]] : [['list'], ['html', { open: 'never' }]], use: { baseURL: process.env.PLAYWRIGHT_BASE_URL || 'http://127.0.0.1:3300', trace: 'on-first-retry', screenshot: 'only-on-failure', video: 'retain-on-failure', }, webServer: { command: 'bash scripts/playwright-stack.sh', cwd: __dirname, url: (process.env.PLAYWRIGHT_BASE_URL || 'http://127.0.0.1:3300') + '/login', timeout: 600_000, reuseExistingServer: false, }, projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'] }, }, ], });