XCUITest swipeLeft() and iPad Pro 12.9 inch

I have an issue with a swipeLeft action


The following line works well on all devices except iPad Pro 12.9 inch

app.cells.element(boundBy: 7).swipeLeft()

Log shows that the swipeLeft action was performed, but nothing is visible on screen.


The intended result was to show editActions for a row in a table view.

Not sure if this helps, but try changing the orientation to .portrait if it isn't already before running the test. There is currently a bug on iOS 10 (radar 27305098) where XCTest swipe / gesture based methods don't account for device orientation. As such doing a left swipe left might translate to a swipe up! (You can notice this when using the test recorder)

XCUITest swipeLeft() and iPad Pro 12.9 inch
 
 
Q