End-to-end tests for the IBF platform using Playwright.
e2e/
├── playwright.config.ts # Playwright configuration (baseURL, projects, ...)
├── env.ts # Centralized environment-variable access
└── nrw/
├── helpers/reset.ts # Seeds api-service mock data via /reset
├── pages/NrwMapPage.ts # Page object for the NRW map view
└── tests/ # Test specs
The tests point at an already-running frontend and backend. Start them separately (see the root README):
-
Backend services (api-service, database, map servers) via Docker:
# From the repository root npm run start:services:detach -
Frontend (
nrw-standalone):# From the repository root npm run setup:frontend # one-time: init submodule + install deps + .env npm run start:frontend # builds and serves the static bundle on http://localhost:5173
The tests read configuration from services/.env (loaded via env.ts):
EXTERNAL_API_SERVICE_URL— base URL of the api-service (defaulthttp://localhost:4000), used to seed mock data.RESET_SECRET— secret required by the/api/resetendpoint.BASE_URL— frontend URL Playwright points at (defaulthttp://localhost:5173).
# From the repository root
npm run install:e2e # one-time: install deps + Playwright browsers
npm run test:e2e
# Or from this directory
npm run setup
npm testnpm run typecheck
npm run lint