about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbinarycat <binarycat@envs.net>2025-05-23 17:43:19 -0500
committerbinarycat <binarycat@envs.net>2025-05-23 17:43:19 -0500
commitbcca611b359c74b71e798c2ee30f4695c6218bbf (patch)
tree4a27a17adaabd55bc5920210c72349e0f235bb91
parent1eba1b56e33f196e6b48cad2efb41b9b9ab7452f (diff)
downloadrust-bcca611b359c74b71e798c2ee30f4695c6218bbf.tar.gz
rust-bcca611b359c74b71e798c2ee30f4695c6218bbf.zip
rustdoc-gui test: apply suggestions from code review
-rw-r--r--tests/rustdoc-gui/sidebar-mobile.goml5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/rustdoc-gui/sidebar-mobile.goml b/tests/rustdoc-gui/sidebar-mobile.goml
index 0596f843174..6ddc07c6481 100644
--- a/tests/rustdoc-gui/sidebar-mobile.goml
+++ b/tests/rustdoc-gui/sidebar-mobile.goml
@@ -57,7 +57,8 @@ scroll-to: ".block.keyword li:nth-child(1)"
 compare-elements-position-near: (".block.keyword li:nth-child(1)", ".mobile-topbar", {"y": 544})
 
 // Now checking the background color of the sidebar.
-reload:
+// Close the sidebar menu.
+press-key: "Escape"
 show-text: true
 
 define-function: (
@@ -73,6 +74,8 @@ define-function: (
             "background-color": |background|,
             "color": |color|,
         })
+        // Make sure the sidebar is full width
+        compare-elements-size: (".sidebar", "body", ["width"])
         // Close the sidebar menu.
         press-key: "Escape"
     },