Rollup merge of #151692 - GuillaumeGomez:reduce-flaky, r=jieyouxu

Try to reduce rustdoc GUI tests flakyness

Should help with https://github.com/rust-lang/rust/issues/93784.

I replaced a use of `puppeteer.wait` function with a loop instead (like the rest of `browser-ui-test`).

r? @jieyouxu
This commit is contained in:
Stuart Cook 2026-01-27 17:36:34 +11:00 committed by GitHub
commit 8ae4aca9ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,6 @@
{
"dependencies": {
"browser-ui-test": "^0.23.1",
"browser-ui-test": "^0.23.2",
"es-check": "^9.4.4",
"eslint": "^8.57.1",
"typescript": "^5.8.3"

View file

@ -110,6 +110,7 @@ define-function: (
call-function: ("open-search", {})
// We empty the search input in case it wasn't empty.
set-property: (".search-input", {"value": ""})
focus: ".search-input"
// We write the actual query.
write-into: (".search-input", |query|)
press-key: 'Enter'