Scrum4Me/__tests__/lib
Janpeter Visser 8287509c7c
Sprint: ll (#207)
* feat(PBI-ll): voeg lib/product-switch-path.ts toe met resolveProductSwitchTarget

Pure helper die doel-URL bij product-wissel bepaalt; unit-tests dekken alle pad-gevallen.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* test(product-switch-path): dek alle pad-categorieën en null-terugval af

* feat(nav-bar): gebruik resolveProductSwitchTarget bij product-wissel

Vervang router.refresh() door gerichte navigatie via resolveProductSwitchTarget,
zodat product/sprint/solo-pagina's direct naar het nieuwe product navigeren.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* test(nav-bar): voeg navigatie-assertions toe voor product-wissel

Voeg 4 tests toe die verifiëren dat NavBar na product-wissel naar de
juiste URL navigeert: /products/B, /products/B/sprint, /products/B/solo,
en router.refresh() op niet-product-pagina's.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-14 22:06:32 +02:00
..
auth M10: Password-loze inlog via QR-pairing (ST-1001..ST-1008) (#12) 2026-04-28 00:01:04 +02:00
insights PBI-56 + ST-1275: PLAN_READY → GRILLING re-grill + SKIPPED status rendering (#147) 2026-05-07 17:36:44 +02:00
realtime fix(realtime): force-destroy pg socket on cleanup timeout (SSE leak) (#44) 2026-05-01 20:04:22 +02:00
active-sprint.test.ts feat(PBI-79): Product Backlog sprint-membership via vinkjes (#190) 2026-05-11 18:56:46 +02:00
auth-guard.test.ts fix: admin-navigatie zichtbaar voor ADMIN-rol gebruikers 2026-05-05 20:46:27 +02:00
chart-colors.test.ts PBI-56 + ST-1275: PLAN_READY → GRILLING re-grill + SKIPPED status rendering (#147) 2026-05-07 17:36:44 +02:00
code.test.ts Sprint: Stories en taken krijgen één voorspelbare volgorde gekoppeld aan hun code; drag-and-drop herordening voor stories/taken verdwijnt, priority wordt puur label. (#201) 2026-05-14 19:02:36 +02:00
debug.test.ts Sprint: Verbeteren debug mode (#179) 2026-05-09 22:46:29 +02:00
idea-code.test.ts lib: idea-code generator + plan_md yaml-frontmatter parser (M12 T-494) 2026-05-04 19:40:39 +02:00
idea-plan-parser.test.ts Sprint: regril (#170) 2026-05-08 13:22:10 +02:00
idea-schemas.test.ts fix(ideas): plan-upload task-volgorde + verifier-pad-format docs (#198) 2026-05-14 02:26:39 +02:00
idea-status.test.ts PBI-56 + ST-1275: PLAN_READY → GRILLING re-grill + SKIPPED status rendering (#147) 2026-05-07 17:36:44 +02:00
job-config.test.ts feat(PBI-4/ST-006): mirror job-config naar webapp + runbook-fix CLI-flags (#171) 2026-05-09 07:11:52 +02:00
job-status-url.test.ts M13: Veilige Claude-agent-workflow (Scrum4Me-side) (#26) 2026-05-01 13:42:18 +02:00
job-status.test.ts PBI-56 + ST-1275: PLAN_READY → GRILLING re-grill + SKIPPED status rendering (#147) 2026-05-07 17:36:44 +02:00
jobs-time-filter.test.ts Sprint: ll (#206) 2026-05-14 21:06:59 +02:00
product-switch-path.test.ts Sprint: ll (#207) 2026-05-14 22:06:32 +02:00
push-client.test.ts Sprint: pbi-55 (#156) 2026-05-07 21:46:01 +02:00
push-server.test.ts Sprint: pbi-55 (#156) 2026-05-07 21:46:01 +02:00
rate-limit.test.ts feat(rate-limit): per-user mutation-rate-limiting (v1-readiness #3) 2026-05-04 13:48:59 +02:00
sprint-conflicts.test.ts fix(sprint-conflicts): free stories from inactive sprints (CLOSED/ARCHIVED/FAILED) (#196) 2026-05-13 15:42:02 +02:00
task-status.test.ts PBI-46: Sprint-niveau jobflow met cascade-FAIL (F1/F2/F4 Scrum4Me) (#136) 2026-05-06 16:43:57 +02:00
tasks-status-update.test.ts feat(PBI-63): meerdere sprints per product + EXCLUDED + sprint-switcher (#161) 2026-05-08 00:15:04 +02:00
user-agent.test.ts feat(ST-1135): UA-redirect bij login — phone naar /m/* (T-322/T-323/T-324) 2026-05-04 10:09:09 +02:00
user-settings-migration.test.ts feat(PBI-76): migrate cookie-based prefs to user-settings (Phase 2) (#189) 2026-05-10 21:20:29 +02:00
user-settings.test.ts Sprint: ll (#206) 2026-05-14 21:06:59 +02:00