From 21ebd03e5ec9c62c1b582adb90d179aaec504d7b Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 26 Jan 2026 16:18:36 +0100 Subject: [PATCH] Try to reduce rustdoc GUI tests flakyness --- package.json | 2 +- tests/rustdoc-gui/utils.goml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0cba589d23f5..1fe87b181669 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/tests/rustdoc-gui/utils.goml b/tests/rustdoc-gui/utils.goml index fa863ae4e96e..53ea91b929fe 100644 --- a/tests/rustdoc-gui/utils.goml +++ b/tests/rustdoc-gui/utils.goml @@ -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'