Strengthen some GUI tests

This commit is contained in:
Guillaume Gomez 2024-10-09 21:23:20 +02:00
parent 12d5f0aa2c
commit 5e6033ea8b
2 changed files with 3 additions and 0 deletions

View File

@ -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)

View File

@ -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,