Skip to content

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

Open
krismuhi wants to merge 1 commit intomainfrom
fix/swipe-direction-to-coordinates
Open

fix: convert swipe direction to coordinates for mobilecli RPC#5
krismuhi wants to merge 1 commit intomainfrom
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
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.

1 participant