Don't call switch-theme function

This commit is contained in:
Guillaume Gomez 2024-06-28 14:24:41 +02:00
parent b1d1e66389
commit c8bbeef12f

View File

@ -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|,