test(pms-11): cover assign + assert JOINed ticket DTO fields (F3) #73
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/pms-11-tickets-assign-joined-fields-test"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Closes the last open acceptance criterion on PMS-11 (Story: Tickets API): the integration test that pins the F3 fix. The five implementation criteria (F3 fully-populated DTOs, on_create / on_update automation, add_note send_email, F9 filter validation) were already delivered by subtasks PMS-12 through PMS-16 and are live on main. The story's test criterion was the only gap: the existing
ticket_lifecycle_happy_pathstopped at add-note and asserted onlytitle, so a regression of F3 (handlers returning200with blank JOINed name/color fields) would have sailed through green.Changes
tests/tickets.rs:assert_joined_fields_populated, run against every returned DTO (create, list item, get, update, assign). It fails ifstatus.name,status.color,priority.name,priority.color,queue_name,company_name, orcreated_by_namecome back empty - the exact fields F3 used to blank out.assigned_to_idand resolvesassigned_to_namethrough the users JOIN.Verification
cargo test --test tickets ticket_lifecycle_happy_pathpasses against the dev Postgres;cargo clippy --test tickets -- -D warningsandcargo fmt --checkare clean. No production code changed - this is test-only coverage hardening.🤖 Generated with Claude Code