File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -122,13 +122,15 @@ click: ".setting-line:last-child .toggle .label"
122
122
assert-local-storage: {"rustdoc-disable-shortcuts": "true"}
123
123
124
124
// Make sure that "Disable keyboard shortcuts" actually took effect.
125
- // The help popover won't exist yet.
125
+ press-key: "Escape"
126
126
press-key: "?"
127
+ assert-false: "#help-button .popover"
127
128
wait-for-css: ("#settings-menu .popover", {"display": "block"})
128
129
129
130
// Now turn keyboard shortcuts back on, and see if they work.
130
131
click: ".setting-line:last-child .toggle .label"
131
132
assert-local-storage: {"rustdoc-disable-shortcuts": "false"}
133
+ press-key: "Escape"
132
134
press-key: "?"
133
135
wait-for-css: ("#help-button .popover", {"display": "block"})
134
136
assert-css: ("#settings-menu .popover", {"display": "none"})
You can’t perform that action at this time.
0 commit comments