diff --git a/package.json b/package.json index 521084e68d..dcb25296fe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "dependencies": { - "browser-ui-test": "0.21.0", + "browser-ui-test": "0.21.1", "eslint": "^8.57.1" }, "scripts": { diff --git a/tests/gui/sidebar.goml b/tests/gui/sidebar.goml index b8c9a10d3b..6fe5a5ed39 100644 --- a/tests/gui/sidebar.goml +++ b/tests/gui/sidebar.goml @@ -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", {}) +// 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", {}) +// 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. set-window-size: (900, 600)