summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-gui/search-input-mobile.goml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-gui/search-input-mobile.goml')
-rw-r--r--tests/rustdoc-gui/search-input-mobile.goml11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/search-input-mobile.goml b/tests/rustdoc-gui/search-input-mobile.goml
new file mode 100644
index 000000000..ce0cef77c
--- /dev/null
+++ b/tests/rustdoc-gui/search-input-mobile.goml
@@ -0,0 +1,11 @@
+// Test to ensure that you can click on the search input, whatever the width.
+// The PR which fixed it is: https://github.com/rust-lang/rust/pull/81592
+goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
+size: (463, 700)
+// We first check that the search input isn't already focused.
+assert-false: ("input.search-input:focus")
+click: "input.search-input"
+reload:
+size: (750, 700)
+click: "input.search-input"
+assert: ("input.search-input:focus")