Files
HarborForge.Frontend.Test/tests/milestone.spec.ts
zhi 766f5ef33e fix: wait for backend ready in global-setup, add login retry in milestone test
Root cause: milestone test was the first to run after global-setup completed
the wizard configuration. The backend needed time to detect the config file
and run database migrations, but tests started immediately. This caused
/auth/token requests to fail with net::ERR_FAILED.

Changes:
- global-setup.ts: after wizard setup, poll backend /docs until it returns 200
- milestone.spec.ts: add retry loop (max 3 attempts) for login as extra safety
  and assert token presence before proceeding
2026-03-16 06:17:29 +00:00

5.4 KiB