Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions tests/rustdoc-gui/search-title.goml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Checks that the search changes the title
include: "utils.goml"
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"

store-value: (title, "test_docs - Rust")
assert-document-property: {"title": |title|}

write-into: (".search-input", "test")
// To be SURE that the search will be run.
press-key: 'Enter'
wait-for: "#crate-search"

assert-document-property: {"title": '"test" Search - Rust'}

set-property: (".search-input", {"value": "another one"})
// To be SURE that the search will be run.
press-key: 'Enter'
wait-for: "#crate-search"

assert-document-property: {"title": '"another one" Search - Rust'}

press-key: "Escape"

assert-document-property: {"title": |title|}