Commit graph

3 commits

Author SHA1 Message Date
0f2ce3fed8 test(agent-api): auth-refusal on all six routes, case-insensitive move,
no-double-accept, Inbox-never-accepts, and 404s

Adds the whole-branch-review test gaps: a single parametrised test looping
over all 6 (method, path, body) combinations asserting 401 for missing and
wrong tokens plus no-write-occurred for the 3 write routes; a move-route
case-insensitivity assertion (real column name uppercased); a negative test
that moving an already-accepted card again does not re-log card_accepted;
a negative test that moving a card into Inbox never sets accepted: true;
and 404 checks for a nonexistent card id across GET/POST/POST/PATCH.

Each new describe block creates and cleans up its own dedicated fixture
card(s), since the existing cardId fixtures from earlier describes in this
file are already deleted by their own afterAll by the time these run.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-26 10:23:30 +02:00
cf942d67c7 fix(test): assert unknown-column error actually lists the project's real columns
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-26 10:05:27 +02:00
05d53e9bb8 test(agent-api): auth, all five routes, and the accept-on-move transition
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-26 10:00:14 +02:00