about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/rustdoc-gui/methods-left-margin.goml2
-rw-r--r--tests/rustdoc-gui/notable-trait.goml1
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/methods-left-margin.goml b/tests/rustdoc-gui/methods-left-margin.goml
index af88bbaefc5..1003cec33f9 100644
--- a/tests/rustdoc-gui/methods-left-margin.goml
+++ b/tests/rustdoc-gui/methods-left-margin.goml
@@ -8,10 +8,12 @@ assert: ".impl-items > section.method"
 
 // Checking on desktop.
 set-window-size: (900, 600)
+wait-for-size: ("body", {"width": 900})
 store-position: (".impl-items section.method", {"x": x})
 assert-position: (".impl-items section.method", {"x": |x|}, ALL)
 
 // Checking on mobile.
 set-window-size: (600, 600)
+wait-for-size: ("body", {"width": 600})
 store-position: (".impl-items section.method", {"x": x})
 assert-position: (".impl-items section.method", {"x": |x|}, ALL)
diff --git a/tests/rustdoc-gui/notable-trait.goml b/tests/rustdoc-gui/notable-trait.goml
index 43a7e8a8f51..e02974e6082 100644
--- a/tests/rustdoc-gui/notable-trait.goml
+++ b/tests/rustdoc-gui/notable-trait.goml
@@ -84,6 +84,7 @@ call-function: ("check-notable-tooltip-position", {
 
 // Checking on mobile now.
 set-window-size: (650, 600)
+wait-for-size: ("body", {"width": 650})
 call-function: ("check-notable-tooltip-position-complete", {
     "x": 25,
     "i_x": 303,