Skip to content

Commit cdce9a7

Browse files
Add check that text in collapsed sidebar cannot be found
1 parent 6343235 commit cdce9a7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/gui/sidebar.goml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,14 @@ define-function: (
4343
},
4444
)
4545

46+
// Since the sidebar is visible, we should be able to find this text.
47+
assert-find-text: ("3.9. Links and Horizontal Rule", {"case-sensitive": true})
4648
call-function: ("hide-sidebar", {})
49+
// Text should not be findeable anymore since the sidebar is collapsed.
50+
assert-find-text-false: ("3.9. Links and Horizontal Rule", {"case-sensitive": true})
4751
call-function: ("show-sidebar", {})
52+
// We should be able to find this text again.
53+
assert-find-text: ("3.9. Links and Horizontal Rule", {"case-sensitive": true})
4854

4955
// We now test on smaller width to ensure that the sidebar is collapsed by default.
5056
set-window-size: (900, 600)

0 commit comments

Comments
 (0)