From 9997217214317c6e1b784a0f542d16a32d5f3843 Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Mon, 14 Mar 2022 14:49:50 +0100 Subject: [PATCH] MOBILE-3833 behat: Delay verifying item selection Before this fix it was happening too fast some times and giving false negatives --- tests/behat/behat_app.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/behat/behat_app.php b/tests/behat/behat_app.php index 603e298d2..a2737f79a 100644 --- a/tests/behat/behat_app.php +++ b/tests/behat/behat_app.php @@ -811,6 +811,8 @@ class behat_app extends behat_base { } // Check that it worked as expected. + usleep(1000000); + $result = $this->evaluate_script("return window.behat.isSelected($locatorjson);"); switch ($result) {