mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Update rustdoc GUI tests
This commit is contained in:
parent
3dec71ea8f
commit
8f5787abba
@ -26,7 +26,7 @@ write: (".search-input", "AliasForTheStdReexport")
|
||||
wait-for: "//a[@class='result-import']"
|
||||
assert-text: (
|
||||
"a.result-import .result-name",
|
||||
"AliasForTheStdReexport - see re-export test_docs::TheStdReexport",
|
||||
"re-export AliasForTheStdReexport - see test_docs::TheStdReexport",
|
||||
)
|
||||
// Same thing again, we click on it to ensure the background is once again set as expected.
|
||||
click: "//a[@class='result-import']"
|
||||
|
@ -368,8 +368,8 @@ define-function: (
|
||||
// Waiting for the search results to appear...
|
||||
wait-for: "#search-tabs"
|
||||
// Checking that the colors for the alias element are the ones expected.
|
||||
assert-css: (".result-name > .alias", {"color": |alias|})
|
||||
assert-css: (".result-name > .alias > .grey", {"color": |grey|})
|
||||
assert-css: (".result-name .path .alias", {"color": |alias|})
|
||||
assert-css: (".result-name .path .alias > .grey", {"color": |grey|})
|
||||
// Leave the search results to prevent reloading with an already filled search input.
|
||||
press-key: "Escape"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user