File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -40,3 +40,25 @@ assert-position: ("#method\.must_use", {"y": 45})
40
40
click: ".sidebar-menu-toggle"
41
41
scroll-to: ".block.keyword li:nth-child(1)"
42
42
compare-elements-position-near: (".block.keyword li:nth-child(1)", ".mobile-topbar", {"y": 543})
43
+
44
+ // Now checking the background color of the sidebar.
45
+ local-storage: {"rustdoc-use-system-theme": "false", "rustdoc-theme": "dark"}
46
+ reload:
47
+
48
+ // Open the sidebar menu.
49
+ click: ".sidebar-menu-toggle"
50
+ assert-css: (".sidebar", {"background-color": "rgb(80, 80, 80)"})
51
+
52
+ local-storage: {"rustdoc-use-system-theme": "false", "rustdoc-theme": "ayu"}
53
+ reload:
54
+
55
+ // Open the sidebar menu.
56
+ click: ".sidebar-menu-toggle"
57
+ assert-css: (".sidebar", {"background-color": "rgb(20, 25, 31)"})
58
+
59
+ local-storage: {"rustdoc-use-system-theme": "false", "rustdoc-theme": "light"}
60
+ reload:
61
+
62
+ // Open the sidebar menu.
63
+ click: ".sidebar-menu-toggle"
64
+ assert-css: (".sidebar", {"background-color": "rgb(245, 245, 245)"})
You can’t perform that action at this time.
0 commit comments