Commit Graph

5 Commits

Author SHA1 Message Date
zhi
b46e242cb7 feat: add task.spec.ts (task + issue comment flow), keep milestone data
- task.spec.ts: login → create project → create milestone → create task
  → create issue → add comment → verify → logout (no cleanup)
- milestone.spec.ts: remove cleanup step, keep project/milestone for inspection
2026-03-16 07:26:38 +00:00
zhi
5e3678ee67 fix: isolate tests — each test only operates on its own resources
- milestone.spec.ts: use unique prefix 'Milestone Test Project', target
  project card by name, clean up (delete) project after verification
- project-editor.spec.ts: use unique prefix 'ProjEditor Test', target
  project card by name instead of first .project-card match

This prevents cross-test interference where project-editor would
accidentally delete the project created by the milestone test.
2026-03-16 06:32:32 +00:00
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
zhi
a26f91c95f test: stabilize milestone login 2026-03-15 21:57:22 +00:00
3b30119317 feat: add role-editor, project-editor, milestone tests 2026-03-15 13:40:45 +00:00