import { defineConfig } from '@playwright/test'; const environment = globalThis as typeof globalThis & { process?: { env: Record } }; export default defineConfig({ testDir: './tests/e2e', fullyParallel: false, workers: 1, retries: 0, reporter: 'line', use: { baseURL: 'http://127.0.0.1:4174', viewport: { width: 1366, height: 768 }, trace: 'retain-on-failure', screenshot: 'only-on-failure', launchOptions: { executablePath: environment.process?.env.PLAYWRIGHT_CHROMIUM_EXECUTABLE, args: ['--no-sandbox', '--disable-gpu'], }, }, webServer: { command: 'npm run build && KAPTAN_GROUND_SUITE_PORT=4174 node scripts/server.mjs', url: 'http://127.0.0.1:4174', reuseExistingServer: false, timeout: 30_000, }, });