Skip to content

Commit 6fe2126

Browse files
Strengthen GUI tests
1 parent de6cba1 commit 6fe2126

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

gui-tests/sidebar.goml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ assert-position: (".rustdoc .sidebar", {"y": |topbar_height|, "x": 0})
99

1010
// We check the same in "mobile mode".
1111
set-window-size: (600, 1000)
12+
wait-for-css-false: (".rustdoc .mobile-topbar", {"display": "none"})
1213
assert-position: (".rustdoc .mobile-topbar", {"y": |topbar_height|, "x": 0})
1314
// We check when the sidebar is shown now.
1415
click: ".rustdoc .mobile-topbar .sidebar-menu-toggle"

gui-tests/theme.goml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// the crate page we control the whole page
77

88
go-to: |DOC_PATH| + "/sysinfo"
9-
set-local-storage: { "rustdoc-theme": null }
9+
set-local-storage: { "rustdoc-theme": "light" }
1010
wait-for-css: (".nav-container", { "background-color": "rgb(255, 255, 255)" })
1111
go-to: |DOC_PATH| + "/crate/sysinfo"
1212
wait-for-css: ("body", { "background-color": "rgb(255, 255, 255)" })

0 commit comments

Comments
 (0)