about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-06-28 17:30:58 -0700
committerMichael Howell <michael@notriddle.com>2022-06-28 18:20:19 -0700
commitccea908c17c835a8466334baacbcb4052347802e (patch)
tree0096cfbcd33333a0b6b4f35af88f5d211e2ad6da
parentf5f42a8cba22fe1616b33cbedf2adc9bf01056b0 (diff)
downloadrust-ccea908c17c835a8466334baacbcb4052347802e.tar.gz
rust-ccea908c17c835a8466334baacbcb4052347802e.zip
rustdoc: add assertion for missing popover div
-rw-r--r--src/test/rustdoc-gui/settings.goml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/rustdoc-gui/settings.goml b/src/test/rustdoc-gui/settings.goml
index 49478775b05..c402c7991c8 100644
--- a/src/test/rustdoc-gui/settings.goml
+++ b/src/test/rustdoc-gui/settings.goml
@@ -122,13 +122,15 @@ click: ".setting-line:last-child .toggle .label"
 assert-local-storage: {"rustdoc-disable-shortcuts": "true"}
 
 // Make sure that "Disable keyboard shortcuts" actually took effect.
-// The help popover won't exist yet.
+press-key: "Escape"
 press-key: "?"
+assert-false: "#help-button .popover"
 wait-for-css: ("#settings-menu .popover", {"display": "block"})
 
 // Now turn keyboard shortcuts back on, and see if they work.
 click: ".setting-line:last-child .toggle .label"
 assert-local-storage: {"rustdoc-disable-shortcuts": "false"}
+press-key: "Escape"
 press-key: "?"
 wait-for-css: ("#help-button .popover", {"display": "block"})
 assert-css: ("#settings-menu .popover", {"display": "none"})