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

This commit is contained in:
Rajesh Taneja 2016-11-22 11:17:21 +08:00
parent 727145bf1c
commit 45e862c4bd
No known key found for this signature in database
GPG Key ID: B363F7FB787F80E4

View File

@ -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);
}
}
}