Skip to content

Commit 9ae75e7

Browse files
authored
Unrolled build for #151856
Rollup merge of #151856 - GuillaumeGomez:fix-gui-flakyness, r=GuillaumeGomez Fix flakyness issue with `tests/rustdoc-gui/globals.goml` test Just realized that when the search input is wrong, sometime we don't even load the search index (which is logical). Since we want to check that the search index is loaded, turned the query into something that works. r? ghost
2 parents 7d8ebe3 + 9e58203 commit 9ae75e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/rustdoc-gui/globals.goml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
include: "utils.goml"
55

66
// URL query
7-
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html?search=sa'%3Bda'%3Bds"
7+
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html?search=sa"
88
wait-for: "#search-tabs"
99
assert-window-property-false: {"searchIndex": null}
1010

1111
// Form input
1212
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
1313
call-function: ("perform-search", {"query": "Foo"})
14-
assert-window-property-false: {"searchIndex": null}
14+
wait-for-window-property-false: {"searchIndex": null}
1515

1616
// source sidebar
1717
go-to: "file://" + |DOC_PATH| + "/src/test_docs/lib.rs.html"

0 commit comments

Comments
 (0)