]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/search-result-keyword.goml
Rollup merge of #95470 - GuillaumeGomez:fix-gui-spurious-test, r=notriddle
[rust.git] / src / test / rustdoc-gui / search-result-keyword.goml
1 // Checks that the "keyword" results have the expected text alongside them.
2 goto: file://|DOC_PATH|/test_docs/index.html
3 write: (".search-input", "CookieMonster")
4 // Waiting for the search results to appear...
5 wait-for: "#titles"
6 // Note: The two next assert commands could be merged as one but readability would be
7 // less good.
8 //
9 // Checking that the CSS is displaying " (keyword)" in italic.
10 assert-text: (".result-name span.keyword > i", "(keyword)")
11 assert-text: (".result-name span.keyword", "CookieMonster (keyword)")