Skip to content

Commit ad61dc9

Browse files
Check that the default theme is "system theme"
1 parent 7153299 commit ad61dc9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/rustdoc-gui/theme-change.goml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
// Ensures that the theme change is working as expected.
22
goto: file://|DOC_PATH|/test_docs/index.html
3-
local-storage: {"rustdoc-theme": "dark"}
43
reload:
54
click: "#settings-menu"
65
wait-for: "#theme-ayu"
6+
7+
// First, we check that the default theme is "system theme".
8+
assert-property: ("#theme-system-preference", {"checked": "true"})
9+
710
click: "#theme-ayu"
811
// should be the ayu theme so let's check the color.
912
wait-for-css: ("body", { "background-color": "rgb(15, 20, 25)" })

0 commit comments

Comments
 (0)