MOBILE-3833 behat: Delay verifying item selection

Before this fix it was happening too fast some times and giving false negatives
main
Noel De Martin 2022-03-14 14:49:50 +01:00
parent 12da416a51
commit 9997217214
1 changed files with 2 additions and 0 deletions

View File

@ -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) {