diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-10-09 21:23:20 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-10-09 21:23:20 +0200 |
| commit | 5e6033ea8b25d42a56eca04eba5bb33a530bc381 (patch) | |
| tree | 469aa3e0af28285230b494ce4e6fd97d99e05dd9 /tests | |
| parent | 12d5f0aa2cdd3d53d3d273c360773cd5a1a3c821 (diff) | |
| download | rust-5e6033ea8b25d42a56eca04eba5bb33a530bc381.tar.gz rust-5e6033ea8b25d42a56eca04eba5bb33a530bc381.zip | |
Strengthen some GUI tests
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/rustdoc-gui/methods-left-margin.goml | 2 | ||||
| -rw-r--r-- | tests/rustdoc-gui/notable-trait.goml | 1 |
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, |
