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

Patrick Kollitsch
18 hours ago e5149b12680a43542cbaf982be9023e312a0bf75
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 00:10 +0100
commite5149b12680a43542cbaf982be9023e312a0bf75
tree 86ba0af0ffe60198efba55f684125530de324a45 tree | zip | gz
parent 992d7bdc01d7eaf495a582eb3dcb7badf9da1e8e 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