Tests: the Directory inside the app #405
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
web/src/dialogs.ts's Directory views are largely untested: subscribing from a listing (
subscribeListed), a show's page in the app (fillShow: its description with More and Less, its failing note, its recent items), searching the Directory, the back button, and an admin's Refresh and Remove from the directory (lines 263-277). These are how people find and add feeds.Tests to add:
Seen with the coverage of both suites merged line by line (cargo:
sh scripts/coverage.sh, browser:sh scripts/coverage.sh api; reports in target/coverage/cargo, api and page; #390, #394), as of 2026-11-07. A test added here shows in Grafana's Coverage row at the next run.Tests added in
5c5dd91: a search with no match ('No feed here has that in its name.', no tiles); a show's page with a long description (More, Less, aria-expanded), its failing reason (#dfail), its latest items, no Refresh or Remove for a non-admin, and Subscribe from the show's page (toast, feed opened). Search, Back, Subscribe from a tile and an admin's Refresh and Remove were already covered by the Directory and #206 tests. Whole browser suite: 108 passed.