- Status: Accepted
- Date: 2026-01-14
- Verify API availability before UI E2E runs to reduce false attribution to the UI.
- Add a dedicated Playwright project that hits public API endpoints.
- Make browser projects depend on the API project to enforce ordering.
- Keep checks read-only and stable:
/health, /metrics, /docs/openapi.json.
- Add an API preflight spec and wire it as a dependency for UI projects.
- Add
E2E_API_BASE_URL to the test configuration docs.
- UI tests do not run if API preflight fails.
- E2E setup now needs the API base URL to be accurate.
- Risk: API endpoint changes will require updates to the preflight checks.
- Rollback: remove the API project dependency and preflight spec.
- No new dependencies; reuse Playwright.