mdbook/tests/gui/heading-nav-normal-intro.goml

11 lines
403 B
Text

// When there is a normal-sized intro, when the page loads the first heading
// should be "current".
set-window-size: (1400, 800)
go-to: |DOC_PATH| + "heading-nav/normal-intro.html"
assert-count: (".header-item", 4)
assert-count: (".current-header", 1)
assert-text: (".current-header", "The first heading")
click: "a[href='#and-a-sub-heading']"
wait-for-text: (".current-header", "And a sub heading")