Update toggle-docs GUI test to last version

This commit is contained in:
Guillaume Gomez 2021-05-11 20:56:07 +02:00
parent d5a24b0a33
commit 1b0976c42f
1 changed files with 7 additions and 4 deletions

View File

@ -1,7 +1,10 @@
goto: file://|DOC_PATH|/test_docs/index.html
assert: ("#main > details.top-doc", "open", "")
click: "#toggle-all-docs"
wait-for: 5000
assert: ("#main > div.docblock.hidden-by-usual-hider")
wait-for: 1000
// This is now collapsed so there shouldn't be the "open" attribute on details.
assert-false: ("#main > details.top-doc", "open", "")
click: "#toggle-all-docs"
wait-for: 5000
assert: ("#main > div.docblock.hidden-by-usual-hider", 0)
wait-for: 1000
// Not collapsed anymore so the "open" attribute should be back.
assert: ("#main > details.top-doc", "open", "")