From 63432355e6554d01591f94dff3a62c1f137f19ce Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 7 Jul 2025 21:34:33 +0200 Subject: [PATCH 1/2] Update browser-ui-test version to `0.21.1` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": { From cdce9a76669ee8b57e2f977463ffbfa06f1f64ee Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 7 Jul 2025 21:34:47 +0200 Subject: [PATCH 2/2] Add check that text in collapsed sidebar cannot be found --- tests/gui/sidebar.goml | 6 ++++++ 1 file changed, 6 insertions(+) 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)