From 5e6033ea8b25d42a56eca04eba5bb33a530bc381 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Wed, 9 Oct 2024 21:23:20 +0200 Subject: [PATCH] Strengthen some GUI tests --- tests/rustdoc-gui/methods-left-margin.goml | 2 ++ tests/rustdoc-gui/notable-trait.goml | 1 + 2 files changed, 3 insertions(+) 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,