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