From bf8a8531ecd08c75b6f9e66122bda781aa2ffed3 Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Thu, 10 Mar 2022 11:17:19 +0100 Subject: [PATCH] MOBILE-3833 behat: Wait swipe animations to finish This is necessary in order to avoid multiple gestures conflicting with each other. --- tests/behat/behat_app.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/behat/behat_app.php b/tests/behat/behat_app.php index f9e1b05a1..603e298d2 100644 --- a/tests/behat/behat_app.php +++ b/tests/behat/behat_app.php @@ -242,6 +242,9 @@ class behat_app extends behat_base { $method = 'swipe' . ucwords($direction); $this->evaluate_script("behat.getAngularInstance('ion-content', 'CoreSwipeNavigationDirective').$method()"); + + // Wait swipe animation to finish. + $this->getSession()->wait(300); } /**