Commit Graph

40 Commits

Author SHA1 Message Date
zhi
b5f3c23ff7 TEST-FE-PR-001: Add Proposal/Essential E2E tests
- Essential list display and empty state tests
- Essential CRUD form interaction tests
- Accept proposal with milestone selection tests
- Generated tasks display after accept tests
- Story type restriction in task creation tests
- Essential UI state management tests
2026-04-01 11:41:39 +00:00
zhi
df05820a95 test: remove real-plugin frontend integration spec 2026-03-21 10:10:58 +00:00
zhi
d8007fab3d test: align propose e2e with current UI 2026-03-20 11:38:12 +00:00
zhi
e41676fa5e fix: correct auth endpoint and form data for real plugin test 2026-03-20 05:07:48 +00:00
zhi
896c1b6dbd Merge commit '24a5ed7' 2026-03-19 22:25:13 +00:00
zhi
24a5ed70ac test: add real-plugin.spec.ts for end-to-end plugin testing 2026-03-19 22:24:53 +00:00
zhi
61854829e8 test(P14.1): add propose E2E tests
Covers:
- Propose CRUD: create, view, edit, list
- Propose lifecycle: accept (with milestone selection), reject, reopen
- Edit restrictions: button hidden for accepted/rejected proposes
- Permissions: create disabled without project selection

4 test suites, 5 test cases for propose management.
2026-03-19 12:38:28 +00:00
zhi
9fdfdfe571 fix(test): update task type selector from 'task' to 'issue'
Frontend P7.1 removed 'task' type from TASK_TYPES. The valid options
are now: story, issue, test, maintenance, research, review, resolution.

Update test to use 'issue' which is the current default.
2026-03-19 10:46:10 +00:00
zhi
82e9dc2c86 test: cover project milestone and task modal editors 2026-03-16 18:13:54 +00:00
zhi
f50a2efdbf test: cover shared task creation modal flow 2026-03-16 16:32:13 +00:00
zhi
67aa98da4f test: stabilize task and role editor flows 2026-03-16 13:22:24 +00:00
zhi
53c974eb25 refactor: update task.spec.ts for Issue→Task rename (routes, selectors) 2026-03-16 07:48:11 +00:00
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
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
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
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
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
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
adadfffd79 use playwright image with deps, remove wizard health check 2026-03-13 18:58:34 +00:00
Zhi
e727933e21 add wizard flow test case 2026-03-13 11:37:01 +00:00
Zhi
de9b0cd5d0 add playwright test setup 2026-03-13 01:19:27 +00:00