about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2021-11-24 18:01:34 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2021-11-25 14:49:03 +0100
commite340478f5d4b9b5552a93f60a40c0b4d44b47ae7 (patch)
treec944b40337ab42a2579f818b32ff39a54cb69c9d
parentf6c728f5e75a9d165b6432a1bad1e0745a096203 (diff)
downloadrust-e340478f5d4b9b5552a93f60a40c0b4d44b47ae7.tar.gz
rust-e340478f5d4b9b5552a93f60a40c0b4d44b47ae7.zip
Improve tests
-rw-r--r--src/test/rustdoc-gui/anchors.goml1
-rw-r--r--src/test/rustdoc-gui/search-filter.goml4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/test/rustdoc-gui/anchors.goml b/src/test/rustdoc-gui/anchors.goml
index 4ce0ed1a4b8..5f809f9aa4e 100644
--- a/src/test/rustdoc-gui/anchors.goml
+++ b/src/test/rustdoc-gui/anchors.goml
@@ -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
diff --git a/src/test/rustdoc-gui/search-filter.goml b/src/test/rustdoc-gui/search-filter.goml
index a098dbd9f12..7a8f8ca5311 100644
--- a/src/test/rustdoc-gui/search-filter.goml
+++ b/src/test/rustdoc-gui/search-filter.goml
@@ -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.