Skip to content

Commit a579f0f

Browse files
Update sidebar GUI test
1 parent 1366918 commit a579f0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/gui/sidebar.goml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ define-function: (
1818

1919
// We now hide the sidebar.
2020
click: "#sidebar-toggle"
21-
wait-for: "body.sidebar-hidden"
21+
wait-for-css: ("#sidebar", {"display": "none"})
2222
// `transform` is 0.3s so we need to wait a bit (0.5s) to ensure the animation is done.
2323
wait-for: 5000
2424
assert-css-false: ("#sidebar", {"transform": "none"})
@@ -37,7 +37,7 @@ define-function: (
3737

3838
// We expand the sidebar.
3939
click: "#sidebar-toggle"
40-
wait-for: "body.sidebar-visible"
40+
wait-for-css-false: ("#sidebar", {"display": "none"})
4141
// `transform` is 0.3s so we need to wait a bit (0.5s) to ensure the animation is done.
4242
wait-for: 5000
4343
assert-css-false: ("#sidebar", {"transform": "matrix(1, 0, 0, 1, -308, 0)"})

0 commit comments

Comments
 (0)