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">).
17 lines
527 B
Text
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")
|