mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Patrick Kollitsch
2 days ago 7aeaa1d5b6254c380818bf094b8b84799d7b5c33
refs
author Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Thursday, November 19, 2026 08:55 +0100
committer Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Thursday, November 19, 2026 08:55 +0100
commit7aeaa1d5b6254c380818bf094b8b84799d7b5c33
tree 915a29c0b927d04bc15f58c5c65f1bd7ee8498d3 tree | zip | gz
parent 444e11a571ed79eface9273f749b754e1dbc14f6 view | diff
test(e2e): cover header submenus

Add child menu entries to the fixture site: a parent with its own page (children from configuration and front matter), a parent without a URL with a third-level entry, and a flat entry. Add a page with a featured image.

Test mouse and keyboard toggling, Escape, outside click, focus leaving, one open submenu at a time, aria-expanded and aria-current, the no-JavaScript fallback, and viewport containment from 320px to 1280px. Run axe on the header with closed and open submenus.
3 files modified
2 files added
334 ■■■■■ changed files
tests/e2e/accessibility.spec.ts 35 ●●●●● diff | view | raw | blame | history
tests/e2e/navigation.spec.ts 253 ●●●●● diff | view | raw | blame | history
tests/fixtures/site/content/featured.md 7 ●●●●● diff | view | raw | blame | history
tests/fixtures/site/content/posts/hello.md 4 ●●●●● diff | view | raw | blame | history
tests/fixtures/site/hugo.toml 35 ●●●●● diff | view | raw | blame | history