Update stale desk and snapshot tests to current behavior #14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "orbit-13-fix-stale-desk-tests"
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?
Four tests fail on
main, all stale relative to intentional code changes — no product bug.Root causes & fixes
SnapshotArticlesfilterscontent != ''(eea4578). Give the articles content./desk/snapshotsnow 302-redirects to per-outlet/desk/snapshots/{site}(8b622e0). Hit that URL, align to the 10-min snapshot tick, give the article content, and trigger the HTMX partial viaHX-Target: snapshot-panel(the handler's actual contract)./deskwas rebuilt from a 'Breaking' list into the 'Kandidater' ranking view (ab324d7). Set up a qualifying candidate (pre-cutoff snapshot at 05:00 today, summary, non-empty keywords) and rename to TestServer_DeskKandidater. The 05:00 snapshot is at/before either edition cutoff (06:00/18:00) and within 24h of both, so it qualifies regardless of run time.Verification
go test ./...is fully green.Closes #13
Four tests failed against intentional changes they were never updated for; none reflect a product bug. - SnapshotArticles excludes content-less articles, so give the test articles content (TestDB_SnapshotArticles). - /desk/snapshots now redirects to the per-outlet /desk/snapshots/{site}; hit that URL, align times to the 10-minute snapshot tick, give the article content, and trigger the HTMX partial via HX-Target rather than HX-Request (TestServer_DeskSnapshots, _HTMX). - /desk is now the Kandidater ranking view; set up a qualifying candidate (pre-cutoff snapshot, summary, non-empty keywords) and rename the test accordingly (TestServer_DeskBreaking -> TestServer_DeskKandidater). Closes #13 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>