Skip to content

Commit bcca611

Browse files
committed
rustdoc-gui test: apply suggestions from code review
1 parent 1eba1b5 commit bcca611

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/rustdoc-gui/sidebar-mobile.goml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ scroll-to: ".block.keyword li:nth-child(1)"
5757
compare-elements-position-near: (".block.keyword li:nth-child(1)", ".mobile-topbar", {"y": 544})
5858

5959
// Now checking the background color of the sidebar.
60-
reload:
60+
// Close the sidebar menu.
61+
press-key: "Escape"
6162
show-text: true
6263

6364
define-function: (
@@ -73,6 +74,8 @@ define-function: (
7374
"background-color": |background|,
7475
"color": |color|,
7576
})
77+
// Make sure the sidebar is full width
78+
compare-elements-size: (".sidebar", "body", ["width"])
7679
// Close the sidebar menu.
7780
press-key: "Escape"
7881
},

0 commit comments

Comments
 (0)