Merge pull request #2744 from GuillaumeGomez/sidebar-text-test
Add check that text in collapsed sidebar cannot be found
This commit is contained in:
commit
ec6f26e652
2 changed files with 7 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"browser-ui-test": "0.21.0",
|
"browser-ui-test": "0.21.1",
|
||||||
"eslint": "^8.57.1"
|
"eslint": "^8.57.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
|
|
@ -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