Update search test

This commit is contained in:
Guillaume Gomez 2025-05-31 09:55:58 +02:00
parent 2fa13cf4e0
commit dc6b0a6e58

View file

@ -36,9 +36,9 @@ go-to: |DOC_PATH| + "index.html"
assert: "#search-wrapper #searchbar"
assert-css: ("#search-wrapper", {"display": "none"})
// Now we make the search input appear with the `S` shortcut.
press-key: 'S'
wait-for-css: ("#search-wrapper", {"display": "block"})
// Now we make sure the search input appear with the `S` shortcut.
press-key: 's'
wait-for-css-false: ("#search-wrapper", {"display": "none"})
// We ensure the search bar has the focus.
assert: "#searchbar:focus"