Skip to content

Commit

Permalink
Strengthen some GUI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Oct 9, 2024
1 parent 12d5f0a commit 5e6033e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/rustdoc-gui/methods-left-margin.goml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
1 change: 1 addition & 0 deletions tests/rustdoc-gui/notable-trait.goml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5e6033e

Please sign in to comment.