mdbook/tests/gui/sidebar-active.goml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
527 B
Text
Raw Normal View History

// 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")