mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
Rollup merge of #83754 - GuillaumeGomez:search-tab-behaviour, r=jyn514
Add test to ensure search tabs behaviour It adds a GUI test for https://github.com/rust-lang/rust/pull/80382. r? ```@jyn514```
This commit is contained in:
commit
1dfbca9266
@ -0,0 +1,21 @@
|
||||
goto: file://|DOC_PATH|/index.html
|
||||
write: (".search-input", "Foo")
|
||||
// Waiting for the search results to appear...
|
||||
wait-for: "#titles"
|
||||
assert: ("#titles > button:nth-of-type(1)", "class", "selected")
|
||||
|
||||
// To go back to the original "state"
|
||||
goto: file://|DOC_PATH|/index.html
|
||||
write: (".search-input", "-> String")
|
||||
// Waiting for the search results to appear...
|
||||
wait-for: "#titles"
|
||||
// With this search, only the last tab shouldn't be empty so it should be selected.
|
||||
assert: ("#titles > button:nth-of-type(3)", "class", "selected")
|
||||
|
||||
// To go back to the original "state"
|
||||
goto: file://|DOC_PATH|/index.html
|
||||
write: (".search-input", "-> Something")
|
||||
// Waiting for the search results to appear...
|
||||
wait-for: "#titles"
|
||||
// With this search, all the tabs are empty so the first one should remain selected.
|
||||
assert: ("#titles > button:nth-of-type(1)", "class", "selected")
|
Loading…
Reference in New Issue
Block a user