diff options
| author | binarycat <binarycat@envs.net> | 2025-05-23 17:43:19 -0500 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2025-05-23 17:43:19 -0500 |
| commit | bcca611b359c74b71e798c2ee30f4695c6218bbf (patch) | |
| tree | 4a27a17adaabd55bc5920210c72349e0f235bb91 | |
| parent | 1eba1b56e33f196e6b48cad2efb41b9b9ab7452f (diff) | |
| download | rust-bcca611b359c74b71e798c2ee30f4695c6218bbf.tar.gz rust-bcca611b359c74b71e798c2ee30f4695c6218bbf.zip | |
rustdoc-gui test: apply suggestions from code review
| -rw-r--r-- | tests/rustdoc-gui/sidebar-mobile.goml | 5 |
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" }, |
