mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
rustdoc-search: add test case for throbber
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
// We are intentionally triggering errors for race-free throbber test
|
||||
fail-on-request-error: false
|
||||
fail-on-js-error: false
|
||||
|
||||
// First, make sure the throbber goes away when done
|
||||
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html?search="
|
||||
wait-for: ".search-input"
|
||||
wait-for-false: ".search-form.loading"
|
||||
write-into: (".search-input", "test")
|
||||
press-key: 'Enter'
|
||||
wait-for-false: ".search-form.loading"
|
||||
|
||||
// Make sure the throbber shows up if we prevent the search from
|
||||
// ever finishing (this tactic is needed to make sure we don't get stuck
|
||||
// with any race conditions).
|
||||
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html?search="
|
||||
block-network-request: "*/desc/*.js"
|
||||
reload:
|
||||
wait-for: ".search-input"
|
||||
wait-for-false: ".search-form.loading"
|
||||
write-into: (".search-input", "test")
|
||||
press-key: 'Enter'
|
||||
wait-for: ".search-form.loading"
|
||||
Reference in New Issue
Block a user