Skip to content

Commit 8dd94b8

Browse files
authored
Rollup merge of rust-lang#128267 - GuillaumeGomez:gui-test-title, r=notriddle
Add rustdoc GUI test to check title with and without search Follow-up of rust-lang#128210. r? `@notriddle`
2 parents 5f3a603 + 015f5d6 commit 8dd94b8

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Diff for: tests/rustdoc-gui/search-title.goml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Checks that the search changes the title
2+
include: "utils.goml"
3+
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
4+
5+
store-value: (title, "test_docs - Rust")
6+
assert-document-property: {"title": |title|}
7+
8+
write-into: (".search-input", "test")
9+
// To be SURE that the search will be run.
10+
press-key: 'Enter'
11+
wait-for: "#crate-search"
12+
13+
assert-document-property: {"title": '"test" Search - Rust'}
14+
15+
set-property: (".search-input", {"value": "another one"})
16+
// To be SURE that the search will be run.
17+
press-key: 'Enter'
18+
wait-for: "#crate-search"
19+
20+
assert-document-property: {"title": '"another one" Search - Rust'}
21+
22+
press-key: "Escape"
23+
24+
assert-document-property: {"title": |title|}

0 commit comments

Comments
 (0)