Skip to content

Commit 8f5787a

Browse files
Update rustdoc GUI tests
1 parent 3dec71e commit 8f5787a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/rustdoc-gui/search-reexport.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ write: (".search-input", "AliasForTheStdReexport")
2626
wait-for: "//a[@class='result-import']"
2727
assert-text: (
2828
"a.result-import .result-name",
29-
"AliasForTheStdReexport - see re-export test_docs::TheStdReexport",
29+
"re-export AliasForTheStdReexport - see test_docs::TheStdReexport",
3030
)
3131
// Same thing again, we click on it to ensure the background is once again set as expected.
3232
click: "//a[@class='result-import']"

tests/rustdoc-gui/search-result-color.goml

+2-2
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ define-function: (
368368
// Waiting for the search results to appear...
369369
wait-for: "#search-tabs"
370370
// Checking that the colors for the alias element are the ones expected.
371-
assert-css: (".result-name > .alias", {"color": |alias|})
372-
assert-css: (".result-name > .alias > .grey", {"color": |grey|})
371+
assert-css: (".result-name .path .alias", {"color": |alias|})
372+
assert-css: (".result-name .path .alias > .grey", {"color": |grey|})
373373
// Leave the search results to prevent reloading with an already filled search input.
374374
press-key: "Escape"
375375
},

0 commit comments

Comments
 (0)