No browser test opens the directory's public pages #395
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?
Found by the API coverage run (#394): the directory's public pages (crates/directory/src/site.rs, directory.ipxreader.app) are at 4% of their lines under the browser suite, which only calls the directory's API; its unit tests reach 84% but never load a page in a browser, so the Copy button (site.ts), the links between pages and the markup itself are untested.
Done in
bda2ef0: tests/ui/directory-site.spec.ts, six tests of the public pages (home, categories, A to Z, the kind tabs, search, a feed's page and Copy, a 404, robots.txt and the sitemap), stable over three repeats. site.rs 4% to 87% under the browser suite, ipx-directory 48% to 69%; Grafana's Coverage row has the new numbers.