mdbook/tests/gui/sidebar-active.goml
Jonathan Hult edf704aa4d
fix(gui): use class selectors for sidebar-scrollbox in GUI tests
Fixes CI failure in sidebar-scroll.goml where mdbook-sidebar-scrollbox custom element not found (timing issue in headless Linux Chrome). The class is always present in generated HTML (<mdbook-sidebar-scrollbox class="sidebar-scrollbox">).
2026-03-16 14:17:54 -05:00

17 lines
527 B
Text

// This GUI test checks the active page sidebar highlight.
go-to: |DOC_PATH| + "all-summary/index.html"
assert-text: (".sidebar-scrollbox a.active", "Prefix 1")
go-to: |DOC_PATH| + "all-summary/part-1/chapter-1.html"
assert-text: (".sidebar-scrollbox a.active", "3. P1 C1")
go-to: |DOC_PATH| + "all-summary/index.html?highlight=test"
assert-text: (".sidebar-scrollbox a.active", "Prefix 1")
go-to: |DOC_PATH| + "all-summary/part-1/chapter-1.html?highlight=test"
assert-text: (".sidebar-scrollbox a.active", "3. P1 C1")