I’ve tested on my laptop and the test still consistently fails.
After some more investigation, it appears the problem is not with the swipe gesture itself, but with committing it, i.e. clicking on the confirmation button. The tests look like this:
The issue is that the 'confirm' item is still moving when being clicked in the test, and thus we’re clicking at the wrong position, dismissing the removal instead of committing it.
If I add a time.sleep(1) after before clicking on the confirm item, the test passes (obviously this is not a proper solution, but it confirms where the problem lies).
I’ve tested on my laptop and the test still consistently fails.
After some more investigation, it appears the problem is not with the swipe gesture itself, but with committing it, i.e. clicking on the confirmation button. The tests look like this:
self. pointing_ device. drag(…) # swipe gesture window. get_note_ delete_ confirmation_ button( note) pointing_ device. click_object( confirm)
confirm = self.main_
self.
The issue is that the 'confirm' item is still moving when being clicked in the test, and thus we’re clicking at the wrong position, dismissing the removal instead of committing it.
If I add a time.sleep(1) after before clicking on the confirm item, the test passes (obviously this is not a proper solution, but it confirms where the problem lies).