Stale desk/snapshot tests fail after route and filter changes #13

Closed
opened 2026-06-15 22:01:53 +02:00 by arne · 0 comments
Owner

Four tests fail on main, all from intentional code changes the tests were never updated for:

  • TestDB_SnapshotArticlesSnapshotArticles filters out content-less articles (added in eea4578) but the test creates articles with no content.
  • TestServer_DeskSnapshots / _HTMX/desk/snapshots now 302-redirects to the per-outlet /desk/snapshots/{site} (8b622e0); tests still hit the old URL and use content-less articles. The HTMX test also keyed the partial on HX-Request, but the handler keys on HX-Target=snapshot-panel.
  • TestServer_DeskBreaking/desk was rebuilt from a 'Breaking' list into a 'Kandidater' ranking view (ab324d7) with different data requirements (pre-cutoff snapshot, summary, non-empty keywords).

No product bug; update the tests to match current behavior.

Four tests fail on main, all from intentional code changes the tests were never updated for: - `TestDB_SnapshotArticles` — `SnapshotArticles` filters out content-less articles (added in eea4578) but the test creates articles with no content. - `TestServer_DeskSnapshots` / `_HTMX` — `/desk/snapshots` now 302-redirects to the per-outlet `/desk/snapshots/{site}` (8b622e0); tests still hit the old URL and use content-less articles. The HTMX test also keyed the partial on HX-Request, but the handler keys on HX-Target=snapshot-panel. - `TestServer_DeskBreaking` — `/desk` was rebuilt from a 'Breaking' list into a 'Kandidater' ranking view (ab324d7) with different data requirements (pre-cutoff snapshot, summary, non-empty keywords). No product bug; update the tests to match current behavior.
arne closed this issue 2026-06-15 22:02:24 +02:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
arne/news#13
No description provided.