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
This commit is contained in:
commit
6d01651dff
1 changed files with 2 additions and 2 deletions
|
|
@ -4,14 +4,14 @@
|
|||
include: "utils.goml"
|
||||
|
||||
// URL query
|
||||
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html?search=sa'%3Bda'%3Bds"
|
||||
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html?search=sa"
|
||||
wait-for: "#search-tabs"
|
||||
assert-window-property-false: {"searchIndex": null}
|
||||
|
||||
// Form input
|
||||
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
|
||||
call-function: ("perform-search", {"query": "Foo"})
|
||||
assert-window-property-false: {"searchIndex": null}
|
||||
wait-for-window-property-false: {"searchIndex": null}
|
||||
|
||||
// source sidebar
|
||||
go-to: "file://" + |DOC_PATH| + "/src/test_docs/lib.rs.html"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue