MDL-56898 behat: Wait for pending JS after setting password

This commit is contained in:
Rajesh Taneja
2016-11-22 11:20:30 +08:00
parent 727145bf1c
commit 45e862c4bd
@@ -60,5 +60,10 @@ JS;
}
$this->field->setValue($value);
// Ensure all pending JS is finished.
if ($this->running_javascript()) {
$this->session->wait(behat_base::TIMEOUT * 1000, behat_base::PAGE_READY_JS);
}
}
}