MOBILE-3833 behat: Wait swipe animations to finish
This is necessary in order to avoid multiple gestures conflicting with each other.main
parent
ecaaba732a
commit
bf8a8531ec
|
@ -242,6 +242,9 @@ class behat_app extends behat_base {
|
||||||
$method = 'swipe' . ucwords($direction);
|
$method = 'swipe' . ucwords($direction);
|
||||||
|
|
||||||
$this->evaluate_script("behat.getAngularInstance('ion-content', 'CoreSwipeNavigationDirective').$method()");
|
$this->evaluate_script("behat.getAngularInstance('ion-content', 'CoreSwipeNavigationDirective').$method()");
|
||||||
|
|
||||||
|
// Wait swipe animation to finish.
|
||||||
|
$this->getSession()->wait(300);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue