Skip to content

Commit d7f357d

Browse files
Add regression test for hamberger button color in mobile sidebar
1 parent 48b2a5d commit d7f357d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/test/rustdoc-gui/sidebar-mobile.goml

+4-3
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,24 @@ scroll-to: ".block.keyword li:nth-child(1)"
4242
compare-elements-position-near: (".block.keyword li:nth-child(1)", ".mobile-topbar", {"y": 543})
4343

4444
// Now checking the background color of the sidebar.
45+
show-text: true
4546
local-storage: {"rustdoc-use-system-theme": "false", "rustdoc-theme": "dark"}
4647
reload:
4748

4849
// Open the sidebar menu.
4950
click: ".sidebar-menu-toggle"
50-
assert-css: (".sidebar", {"background-color": "rgb(80, 80, 80)"})
51+
assert-css: (".sidebar", {"background-color": "rgb(80, 80, 80)", "color": "rgb(221, 221, 221)"})
5152

5253
local-storage: {"rustdoc-use-system-theme": "false", "rustdoc-theme": "ayu"}
5354
reload:
5455

5556
// Open the sidebar menu.
5657
click: ".sidebar-menu-toggle"
57-
assert-css: (".sidebar", {"background-color": "rgb(20, 25, 31)"})
58+
assert-css: (".sidebar", {"background-color": "rgb(20, 25, 31)", "color": "rgb(197, 197, 197)"})
5859

5960
local-storage: {"rustdoc-use-system-theme": "false", "rustdoc-theme": "light"}
6061
reload:
6162

6263
// Open the sidebar menu.
6364
click: ".sidebar-menu-toggle"
64-
assert-css: (".sidebar", {"background-color": "rgb(245, 245, 245)"})
65+
assert-css: (".sidebar", {"background-color": "rgb(245, 245, 245)", "color": "rgb(0, 0, 0)"})

0 commit comments

Comments
 (0)