12 lines
400 B
Text
12 lines
400 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| + "headings/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")
|