import { defineConfig } from '@playwright/test'; /** The pages against a running API (API_URL), served by the dev server with the same * proxy the app uses in production (`/api`). Run by WebApi/tests/test_webapp.py, which * starts the platform and loads the synthetic hospital first. */ export default defineConfig({ testDir: 'e2e', timeout: 15 * 60_000, expect: { timeout: 60_000 }, workers: 1, reporter: 'list', use: { baseURL: 'http://127.0.0.1:4310', viewport: { width: 1440, height: 1000 }, actionTimeout: 60_000, // a stuck step fails, not the whole run }, webServer: { // IPv4 explicitly: `localhost` may resolve to ::1 only (CI containers), where the url below never answers. command: 'npx ng serve --host 127.0.0.1 --port 4310 --proxy-config proxy.e2e.mjs', env: { NG_CLI_ANALYTICS: 'false' }, url: 'http://127.0.0.1:4310', timeout: 180_000, reuseExistingServer: false, }, });