]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-gui/search-result-keyword.goml
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / 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 // To be SURE that the search will be run.
5 press-key: 'Enter'
6 // Waiting for the search results to appear...
7 wait-for: "#search-tabs"
8 // Note: The two next assert commands could be merged as one but readability would be
9 // less good.
10 //
11 // Checking that the CSS is displaying " (keyword)" in italic.
12 assert-text: (".result-name span.keyword > i", "(keyword)")
13 assert-text: (".result-name span.keyword", "CookieMonster (keyword)")