summary refs log tree commit diff
path: root/src/test/rustdoc-gui
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-06-22 12:06:09 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2021-06-23 10:09:26 +0200
commitc4023c6ca31f80cb7fa3cbebc9f0095d5f649d53 (patch)
tree9eaa76d7a2978abd8bc98f040309ea486518c8bb /src/test/rustdoc-gui
parent8cb207ae69700de3e782eec5cc9013c0987b2519 (diff)
downloadrust-c4023c6ca31f80cb7fa3cbebc9f0095d5f649d53.tar.gz
rust-c4023c6ca31f80cb7fa3cbebc9f0095d5f649d53.zip
Fix search filter update
Diffstat (limited to 'src/test/rustdoc-gui')
-rw-r--r--src/test/rustdoc-gui/search-filter.goml17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/search-filter.goml b/src/test/rustdoc-gui/search-filter.goml
new file mode 100644
index 00000000000..a098dbd9f12
--- /dev/null
+++ b/src/test/rustdoc-gui/search-filter.goml
@@ -0,0 +1,17 @@
+goto: file://|DOC_PATH|/test_docs/index.html
+write: (".search-input", "test")
+// Waiting for the search results to appear...
+wait-for: "#titles"
+assert-text: ("#results .externcrate", "test_docs")
+text: (".search-input", "")
+// We now want to change the crate filter.
+click: "#crate-search"
+// We select "lib2" option then press enter to change the filter.
+press-key: "ArrowDown"
+press-key: "Enter"
+// We now make the search again.
+write: (".search-input", "test")
+// Waiting for the search results to appear...
+wait-for: "#titles"
+// We check that there is no more "test_docs" appearing.
+assert-false: "#results .externcrate"