Skip to content

fix: convert swipe direction to coordinates for mobilecli RPC - #5

Merged
gmegidish merged 1 commit into
mainfrom
fix/swipe-direction-to-coordinates
Apr 2, 2026
Merged

gmegidish merged 1 commit into
mainfrom
fix/swipe-direction-to-coordinates

Conversation

@krismuhi

Copy link
Copy Markdown
Member

Summary

  • The mobilecli device.io.swipe RPC expects raw x1, y1, x2, y2 coordinates, but the driver was passing direction as a string parameter, causing 'x1' is required errors at runtime
  • The driver now fetches screen size and computes start/end coordinates from the direction, optional startX/startY, and distance (defaults to 50% of the relevant screen dimension from center)

Test plan

  • Verified with Milliways iOS app — swipe gestures now work correctly on simulator
  • All 5 integration tests pass (welcome screen, menu browsing with swipe, item detail, quantity, full order flow)

The mobilecli `device.io.swipe` RPC expects raw `x1, y1, x2, y2`
coordinates, but the driver was passing `direction` as a string param
which caused an "'x1' is required" error at runtime.

Now the driver fetches the screen size and computes start/end
coordinates from the direction, optional startX/startY, and distance
(defaulting to 50% of the relevant screen dimension from center).
@krismuhi
krismuhi force-pushed the fix/swipe-direction-to-coordinates branch from 7b42fa7 to 2e14c60 Compare March 29, 2026 20:51
@gmegidish
gmegidish merged commit 2bb3999 into main Apr 2, 2026
1 check passed
@gmegidish
gmegidish deleted the fix/swipe-direction-to-coordinates branch April 2, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants