Skip to content

Commit

Permalink
Reduce rustdoc GUI tests flakyness
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jun 13, 2024
1 parent f158600 commit d78746c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/rustdoc-gui/utils.goml
Original file line number Diff line number Diff line change
Expand Up @@ -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|}
},
)

0 comments on commit d78746c

Please sign in to comment.