I'm trying to use this API in my UITest suite: https://developer.apple.com/documentation/xctest/xcuicoordinate/3551692-press
press(forDuration:thenDragTo:withVelocity:thenHoldForDuration:)
However, the holdDuration
parameter has no affect and the action stops once the drag is finished (instead of keep holding the element).
I've reproduced this error with a demo application, along with a reproductive UI test and videos:
https://github.com/asafkorem/XCUITestHoldBugReproduction
Also, I do not find any reasonable workaround for the problem.
Thanks.