Rollup merge of #85507 - GuillaumeGomez:extend-escape-key-check, r=jsha

Extend escape key check

Since #84462 has been merged, we can now extend the `escape-key` test.

r? `@jsha`
This commit is contained in:
Guillaume Gomez 2021-05-20 17:56:57 +02:00 committed by GitHub
commit 0918348eaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,13 @@ assert: ("#help", "class", "hidden")
assert: ("#search", "class", "content")
assert: ("#main", "class", "content hidden")
// FIXME: Once https://github.com/rust-lang/rust/pull/84462 is merged, add check to ensure
// that Escape hides the search results when a result is focused.
// press-key: "ArrowDown"
// Check that Escape hides the search results when a search result is focused.
focus: ".search-input"
assert: ".search-input:focus"
press-key: "ArrowDown"
assert-false: ".search-input:focus"
assert: "#results a:focus"
press-key: "Escape"
assert: ("#help", "class", "hidden")
assert: ("#search", "class", "content hidden")
assert: ("#main", "class", "content")