Skip to content

Commit ec6f26e

Browse files
authored
Merge pull request #2744 from GuillaumeGomez/sidebar-text-test
Add check that text in collapsed sidebar cannot be found
2 parents 4bf2b47 + cdce9a7 commit ec6f26e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
3-
"browser-ui-test": "0.21.0",
3+
"browser-ui-test": "0.21.1",
44
"eslint": "^8.57.1"
55
},
66
"scripts": {

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)