Skip to content

Commit d78746c

Browse files
Reduce rustdoc GUI tests flakyness
1 parent f158600 commit d78746c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: tests/rustdoc-gui/utils.goml

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ define-function: (
1010
wait-for: "#settings"
1111
// Change the setting.
1212
click: "#theme-"+ |theme|
13+
// We wait for the radio button to be updated.
14+
wait-for: "#theme-"+ |theme| + ":checked"
1315
// Close the popover.
1416
click: "#settings-menu"
1517
// Ensure that the local storage was correctly updated.
16-
assert-local-storage: {"rustdoc-theme": |theme|}
18+
wait-for-local-storage: {"rustdoc-theme": |theme|}
1719
},
1820
)

0 commit comments

Comments
 (0)