From ccea908c17c835a8466334baacbcb4052347802e Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Tue, 28 Jun 2022 17:30:58 -0700 Subject: [PATCH] rustdoc: add assertion for missing popover div --- src/test/rustdoc-gui/settings.goml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/rustdoc-gui/settings.goml b/src/test/rustdoc-gui/settings.goml index 49478775b0582..c402c7991c8bb 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"})