Closed amoshydra closed 2 months ago
realSwipe
command, improvements have been made to accommodate scenarios where the x
and y
options are not assigned any value. This ensures the command performs consistently in varied use cases.:tada: This PR is included in version 1.13.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Summary
Accept
0
forx
andy
by checking if the value provided is falsey using== null
.If either x or y is provided, prefill the undefined y or x with 0
This is necessary also as
Position
require both x and y to be defined:https://github.com/amoshydra/cypress-real-events/blob/d2c3caa0b3ed73109db04b984d8257a0b653f3a1/src/getCypressElementCoordinates.ts#L1-L11
Related issue
This should resolve #641
Motivation
To allow realSwipe to start at x: 0, y: 0