Skip to content

Commit 3a007db

Browse files
committed
rustdoc: update test cases
1 parent 87faa21 commit 3a007db

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/rustdoc-gui/search-result-go-to-first.goml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
// First, we check that the first page doesn't have the string we're looking for to ensure
44
// that the feature is changing page as expected.
55
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
6-
assert-text-false: (".main-heading h1", "Struct test_docs::Foo")
6+
assert-text-false: (".main-heading h1", "Struct test_docs::FooCopy item path")
77

88
// We now check that we land on the search result page if "go_to_first" isn't set.
99
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html?search=struct%3AFoo"
1010
// Waiting for the search results to appear...
1111
wait-for: "#search-tabs"
12-
assert-text-false: (".main-heading h1", "Struct test_docs::Foo")
12+
assert-text-false: (".main-heading h1", "Struct test_docs::FooCopy item path")
1313
// Ensure that the search results are displayed, not the "normal" content.
1414
assert-css: ("#main-content", {"display": "none"})
1515

1616
// Now we can check that the feature is working as expected!
1717
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html?search=struct%3AFoo&go_to_first=true"
1818
// Waiting for the page to load...
19-
wait-for-text: (".main-heading h1", "Struct test_docs::Foo")
19+
wait-for-text: (".main-heading h1", "Struct test_docs::FooCopy item path")

tests/rustdoc-gui/toggle-click-deadspace.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ assert-attribute-false: (".impl-items .toggle", {"open": ""})
1212

1313
// Click the "Trait" part of "impl Trait" and verify it navigates.
1414
click: "#impl-Trait-for-Foo h3 a:first-of-type"
15-
assert-text: (".main-heading h1", "Trait lib2::Trait")
15+
assert-text: (".main-heading h1", "Trait lib2::TraitCopy item path")

0 commit comments

Comments
 (0)