Skip to content

Commit 5e6033e

Browse files
Strengthen some GUI tests
1 parent 12d5f0a commit 5e6033e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/rustdoc-gui/methods-left-margin.goml

+2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ assert: ".impl-items > section.method"
88

99
// Checking on desktop.
1010
set-window-size: (900, 600)
11+
wait-for-size: ("body", {"width": 900})
1112
store-position: (".impl-items section.method", {"x": x})
1213
assert-position: (".impl-items section.method", {"x": |x|}, ALL)
1314

1415
// Checking on mobile.
1516
set-window-size: (600, 600)
17+
wait-for-size: ("body", {"width": 600})
1618
store-position: (".impl-items section.method", {"x": x})
1719
assert-position: (".impl-items section.method", {"x": |x|}, ALL)

tests/rustdoc-gui/notable-trait.goml

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ call-function: ("check-notable-tooltip-position", {
8484

8585
// Checking on mobile now.
8686
set-window-size: (650, 600)
87+
wait-for-size: ("body", {"width": 650})
8788
call-function: ("check-notable-tooltip-position-complete", {
8889
"x": 25,
8990
"i_x": 303,

0 commit comments

Comments
 (0)