Skip to content

Commit ccea908

Browse files
committed
rustdoc: add assertion for missing popover div
1 parent f5f42a8 commit ccea908

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/rustdoc-gui/settings.goml

+3-1
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,15 @@ click: ".setting-line:last-child .toggle .label"
122122
assert-local-storage: {"rustdoc-disable-shortcuts": "true"}
123123

124124
// Make sure that "Disable keyboard shortcuts" actually took effect.
125-
// The help popover won't exist yet.
125+
press-key: "Escape"
126126
press-key: "?"
127+
assert-false: "#help-button .popover"
127128
wait-for-css: ("#settings-menu .popover", {"display": "block"})
128129

129130
// Now turn keyboard shortcuts back on, and see if they work.
130131
click: ".setting-line:last-child .toggle .label"
131132
assert-local-storage: {"rustdoc-disable-shortcuts": "false"}
133+
press-key: "Escape"
132134
press-key: "?"
133135
wait-for-css: ("#help-button .popover", {"display": "block"})
134136
assert-css: ("#settings-menu .popover", {"display": "none"})

0 commit comments

Comments
 (0)