Debian Codegraph @

tests/gui/heading-nav-large-intro.goml

raw
1 // When there is a large intro, there shouldn't be any "current" headers until
2 // you scroll down and make it visible on screen.
3
4 set-window-size: (1400, 800)
5 go-to: |DOC_PATH| + "heading-nav/large-intro.html"
6 assert-count: (".header-item", 1)
7 assert-count: (".current-header", 0)
8
9 scroll-to: "#first-header"
10 wait-for-count: (".current-header", 1)
11 assert-text: (".current-header", "First header")
12
13 // Scrolling back to the top should set it to 0.
14 scroll-to: (0, 0)
15 wait-for-count: (".current-header", 0)