diff --git a/tests/rustdoc-gui/help-page.goml b/tests/rustdoc-gui/help-page.goml index 09d33af139cdd..8fb4773325c64 100644 --- a/tests/rustdoc-gui/help-page.goml +++ b/tests/rustdoc-gui/help-page.goml @@ -20,6 +20,7 @@ define-function: ( "check-colors", [theme, color, background, box_shadow], block { + debug: true call-function: ("switch-theme", {"theme": |theme|}) assert-css: ("#help kbd", { "color": |color|, diff --git a/tests/rustdoc-gui/utils.goml b/tests/rustdoc-gui/utils.goml index 844dc98a5374c..4bfacba1989fa 100644 --- a/tests/rustdoc-gui/utils.goml +++ b/tests/rustdoc-gui/utils.goml @@ -10,9 +10,11 @@ define-function: ( wait-for: "#settings" // Change the setting. click: "#theme-"+ |theme| + // We wait for the radio button to be updated. + wait-for: "#theme-"+ |theme| + ":checked" // Close the popover. click: "#settings-menu" // Ensure that the local storage was correctly updated. - assert-local-storage: {"rustdoc-theme": |theme|} + wait-for-local-storage: {"rustdoc-theme": |theme|} }, )