Commit Graph

47 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
e8be04c968 test: add local proxy for wizard/backend/frontend 2026-03-15 22:40:00 +00:00
zhi
a26f91c95f test: stabilize milestone login 2026-03-15 21:57:22 +00:00
f5065173b3 Merge pull request 'test: remove full workflow spec' (#1) from chore/remove-full-workflow-test into master
Reviewed-on: #1
2026-03-15 16:23:20 +00:00
zhi
f0ba028d77 test: remove full workflow spec 2026-03-15 15:55:00 +00:00
3b30119317 feat: add role-editor, project-editor, milestone tests 2026-03-15 13:40:45 +00:00
Zhi
e8ffed41ee Add wizard proxy for localhost access in test container 2026-03-14 10:22:46 +00:00
Zhi
6d15744735 Fix full workflow test: select project filter for milestone (proper escaping) 2026-03-14 08:56:41 +00:00
Zhi
1ac401908f Fix full workflow test: select project filter for milestone 2026-03-14 08:53:32 +00:00
Zhi
d68bc0214c Add debug output to full workflow test 2026-03-14 08:52:25 +00:00
Zhi
3b9533a432 Add debug output to global setup 2026-03-14 08:47:12 +00:00
Zhi
350238f84c Fix selectors in full workflow test 2026-03-14 08:44:47 +00:00
Zhi
6d79de92db Add full workflow test: login -> create project -> milestone -> task/meeting/support -> logout 2026-03-14 08:42:06 +00:00
Zhi
0d0a8c9a48 Convert wizard setup to globalSetup
- global-setup.ts: configures wizard before tests run
- playwright.config.ts: uses globalSetup
- wizard.spec.ts: simplified to just verify frontend loads
2026-03-14 08:34:55 +00:00
Zhi
db9fadd13d Add debug output 2026-03-14 07:48:01 +00:00
Zhi
f97f31acaa Fix test selectors to use label text 2026-03-14 07:46:38 +00:00
Zhi
afe4038778 Remove webServer config - services started via docker-compose 2026-03-14 07:41:45 +00:00
Zhi
7e4933ee25 Update test for backend URL step 2026-03-14 07:33:49 +00:00
Zhi
c4573726f6 Test wizard flow without pre-configuring via API 2026-03-13 19:48:25 +00:00
Zhi
e1c78c532d Add debugging to test 2026-03-13 19:42:02 +00:00
Zhi
6688fbb4de Navigate to frontend instead of wizard 2026-03-13 19:39:55 +00:00
Zhi
06a817c416 Debug WIZARD_URL and use separate API URL 2026-03-13 19:38:39 +00:00
Zhi
ede8c94560 Adjust WIZARD_URL and navigate directly in test 2026-03-13 19:36:51 +00:00
Zhi
f05c0e3aca simplify test to just test wizard UI flow 2026-03-13 19:31:07 +00:00
Zhi
828987b8f1 improve test with explicit waits 2026-03-13 19:30:05 +00:00
Zhi
acca2d100f add axios dependency 2026-03-13 19:27:48 +00:00
Zhi
9085e69907 use axios for wizard API config 2026-03-13 19:27:16 +00:00
Zhi
2e6db75472 fix test to use axios for API calls 2026-03-13 19:26:01 +00:00
Zhi
efa3e27455 configure wizard via API before testing 2026-03-13 19:15:10 +00:00
Zhi
be7ed687e4 install chromium deps in dockerfile 2026-03-13 18:59:23 +00:00
Zhi
d883dc3dc0 use correct playwright image tag 2026-03-13 18:58:58 +00:00
Zhi
adadfffd79 use playwright image with deps, remove wizard health check 2026-03-13 18:58:34 +00:00
Zhi
47b9eecf9f fix playwright config: use chromium, remove remote debugging 2026-03-13 18:57:44 +00:00
Zhi
e727933e21 add wizard flow test case 2026-03-13 11:37:01 +00:00
Zhi
c340239003 configure playwright to use remote chrome debugging 2026-03-13 11:01:32 +00:00
Zhi
d389a9eafc skip browser download during playwright install 2026-03-13 10:59:15 +00:00
Zhi
9b6377c787 install playwright and chromium in image 2026-03-13 10:56:54 +00:00
Zhi
a15de04895 use mcr.microsoft.com/playwright image 2026-03-13 10:51:58 +00:00
Zhi
a23e425e35 allow BASE_URL and WEB_SERVER_URL env vars 2026-03-13 01:28:16 +00:00
Zhi
fd497f7231 run playwright test as default command 2026-03-13 01:25:37 +00:00
Zhi
d816a86b82 add CHROME_DEBUGGING_PORT env var 2026-03-13 01:21:45 +00:00
Zhi
de9b0cd5d0 add playwright test setup 2026-03-13 01:19:27 +00:00
Zhi
69d1eb8aff remove submodule 2026-03-13 01:19:09 +00:00
Zhi
c59b987317 add frontend submodule 2026-03-13 00:04:52 +00:00
Zhi
deeedec818 init 2026-03-13 00:04:28 +00:00