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

Patrick Kollitsch
yesterday 1e1e5d40277ff70e9933d30e1f2325be929f1170
refs
author Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Thursday, November 19, 2026 08:55 +0100
committer Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Friday, November 20, 2026 09:03 +0100
commit1e1e5d40277ff70e9933d30e1f2325be929f1170
tree 8c0678e11d676d3ebc6046ea457adab0c97935a6 tree | zip | gz
parent b94950f88994c005ddcd5e71531a288a156cae30 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