Skip to content

Commit dd6bb09

Browse files
Ensure that the settings CSS is loaded on the settings page
1 parent 92482ca commit dd6bb09

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/rustdoc-gui/settings.goml

+5
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,8 @@ assert: ".setting-line.hidden #theme"
6565
// We check their text as well.
6666
assert-text: ("#preferred-dark-theme .setting-name", "Preferred dark theme")
6767
assert-text: ("#preferred-light-theme .setting-name", "Preferred light theme")
68+
69+
// Now we go to the settings page to check that the CSS is loaded as expected.
70+
goto: file://|DOC_PATH|/settings.html
71+
wait-for: "#settings"
72+
assert-css: (".setting-line .toggle", {"width": "45px", "margin-right": "20px"})

0 commit comments

Comments
 (0)