Skip to content

Commit

Permalink
Don't call switch-theme function
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jun 29, 2024
1 parent b1d1e66 commit c8bbeef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/rustdoc-gui/help-page.goml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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|,
Expand Down

0 comments on commit c8bbeef

Please sign in to comment.