]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/search-filter.goml
Auto merge of #86454 - tlyu:refactor-unsized-suggestions, r=davidtwco
[rust.git] / src / test / rustdoc-gui / search-filter.goml
1 goto: file://|DOC_PATH|/test_docs/index.html
2 write: (".search-input", "test")
3 // Waiting for the search results to appear...
4 wait-for: "#titles"
5 assert-text: ("#results .externcrate", "test_docs")
6 text: (".search-input", "")
7 // We now want to change the crate filter.
8 click: "#crate-search"
9 // We select "lib2" option then press enter to change the filter.
10 press-key: "ArrowDown"
11 press-key: "Enter"
12 // We now make the search again.
13 write: (".search-input", "test")
14 // Waiting for the search results to appear...
15 wait-for: "#titles"
16 // We check that there is no more "test_docs" appearing.
17 assert-false: "#results .externcrate"