Add check that text in collapsed sidebar cannot be found
This commit is contained in:
parent
63432355e6
commit
cdce9a7666
1 changed files with 6 additions and 0 deletions
|
|
@ -43,8 +43,14 @@ define-function: (
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Since the sidebar is visible, we should be able to find this text.
|
||||||
|
assert-find-text: ("3.9. Links and Horizontal Rule", {"case-sensitive": true})
|
||||||
call-function: ("hide-sidebar", {})
|
call-function: ("hide-sidebar", {})
|
||||||
|
// Text should not be findeable anymore since the sidebar is collapsed.
|
||||||
|
assert-find-text-false: ("3.9. Links and Horizontal Rule", {"case-sensitive": true})
|
||||||
call-function: ("show-sidebar", {})
|
call-function: ("show-sidebar", {})
|
||||||
|
// We should be able to find this text again.
|
||||||
|
assert-find-text: ("3.9. Links and Horizontal Rule", {"case-sensitive": true})
|
||||||
|
|
||||||
// We now test on smaller width to ensure that the sidebar is collapsed by default.
|
// We now test on smaller width to ensure that the sidebar is collapsed by default.
|
||||||
set-window-size: (900, 600)
|
set-window-size: (900, 600)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue