From dd6bb09133f1f97db6a36024bf4e66489fc760c1 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Wed, 11 May 2022 11:29:21 +0200 Subject: [PATCH] Ensure that the settings CSS is loaded on the settings page --- src/test/rustdoc-gui/settings.goml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/rustdoc-gui/settings.goml b/src/test/rustdoc-gui/settings.goml index 6c4611b1cb2a..18270264266f 100644 --- a/src/test/rustdoc-gui/settings.goml +++ b/src/test/rustdoc-gui/settings.goml @@ -65,3 +65,8 @@ assert: ".setting-line.hidden #theme" // We check their text as well. assert-text: ("#preferred-dark-theme .setting-name", "Preferred dark theme") assert-text: ("#preferred-light-theme .setting-name", "Preferred light theme") + +// Now we go to the settings page to check that the CSS is loaded as expected. +goto: file://|DOC_PATH|/settings.html +wait-for: "#settings" +assert-css: (".setting-line .toggle", {"width": "45px", "margin-right": "20px"})