diff --git a/tests/rustdoc-gui/help-page.goml b/tests/rustdoc-gui/help-page.goml index 09d33af139cdd..f1a2675128ce4 100644 --- a/tests/rustdoc-gui/help-page.goml +++ b/tests/rustdoc-gui/help-page.goml @@ -1,5 +1,4 @@ // This test ensures that opening the help page in its own tab works. -include: "utils.goml" go-to: "file://" + |DOC_PATH| + "/help.html" set-window-size: (1000, 1000) // Try desktop size first. wait-for: "#help" @@ -20,7 +19,9 @@ define-function: ( "check-colors", [theme, color, background, box_shadow], block { - call-function: ("switch-theme", {"theme": |theme|}) + // FIXME: no clue why we can't call the `switch-theme` function here... + set-local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"} + reload: assert-css: ("#help kbd", { "color": |color|, "background-color": |background|,