Rollup merge of #151053 - reduce-gui-test-flakyness, r=jieyouxu

Reduce flakyness for `tests/rustdoc-gui/notable-trait.goml`

Fixes https://github.com/rust-lang/rust/issues/151006 (hopefully).

Instead of asserting right away, it waits for the element count to be the one expected.

r? @jieyouxu
This commit is contained in:
Guillaume Gomez 2026-01-13 23:39:13 +01:00 committed by GitHub
commit 860e60a786
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -250,7 +250,7 @@ set-window-size: (1100, 600)
reload:
assert-count: ("//*[@class='tooltip popover']", 0)
click: "//*[@id='method.create_an_iterator_from_read']//*[@class='tooltip']"
assert-count: ("//*[@class='tooltip popover']", 1)
wait-for-count: ("//*[@class='tooltip popover']", 1)
call-function: ("open-settings-menu", {})
assert-count: ("//*[@class='tooltip popover']", 0)
wait-for-count: ("//*[@class='tooltip popover']", 0)
assert-false: "#method\.create_an_iterator_from_read .tooltip:focus"