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

Patrick Kollitsch
13 hours ago 1448ec483ea7fa078b4d25eb21c19051388c5cca
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 12:51 +0100
commit1448ec483ea7fa078b4d25eb21c19051388c5cca
tree 15ceff13392742dbac4b3a95008a5f8064c37c97 tree | zip | gz
parent 9252878095af8dd19cb9d84e2ea212b2943791fd 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