Improve tests

This commit is contained in:
Guillaume Gomez 2021-11-24 18:01:34 +01:00
parent f6c728f5e7
commit e340478f5d
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
// This test is to ensure that the anchors (`§`) have the expected color.
goto: file://|DOC_PATH|/test_docs/struct.HeavilyDocumentedStruct.html
show-text: true
// This is needed to ensure that the text color is computed.
show-text: true

View File

@ -1,9 +1,11 @@
goto: file://|DOC_PATH|/test_docs/index.html
show-text: true
write: (".search-input", "test")
// Waiting for the search results to appear...
wait-for: "#titles"
assert-text: ("#results .externcrate", "test_docs")
text: (".search-input", "")
goto: file://|DOC_PATH|/test_docs/index.html
// We now want to change the crate filter.
click: "#crate-search"
// We select "lib2" option then press enter to change the filter.