Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Reduce rustdoc GUI flakyness, take 2
  • Loading branch information
GuillaumeGomez committed Jan 14, 2026
commit 4bacdf7b8b9046507ef5ae3bcb349d54fb827b0d
30 changes: 24 additions & 6 deletions tests/rustdoc-gui/utils.goml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,37 @@ define-function: (
"open-settings-menu",
[],
block {
call-function: ("click-settings-button", {})
// Wait for the popover to appear...
wait-for-css: ("#settings", {"display": "block"})
store-count: ("#settings", nb_settings_menu)
if: (|nb_settings_menu| != 0, block {
store-css: ("#settings", {"display": settings_display})
})
else: block {
store-value: (settings_display, "none")
}
if: (|settings_display| != "block", block {
call-function: ("click-settings-button", {})
// Wait for the popover to appear...
wait-for-css: ("#settings", {"display": "block"})
})
}
)

define-function: (
"close-settings-menu",
[],
block {
call-function: ("click-settings-button", {})
// Wait for the popover to disappear...
wait-for-css-false: ("#settings", {"display": "block"})
store-count: ("#settings", nb_settings_menu)
if: (|nb_settings_menu| != 0, block {
store-css: ("#settings", {"display": settings_display})
})
else: block {
store-value: (settings_display, "block")
}
if: (|settings_display| == "block", block {
call-function: ("click-settings-button", {})
// Wait for the popover to disappear...
wait-for-css-false: ("#settings", {"display": "block"})
})
}
)

Expand Down
Loading