MDL-56898 behat: Wait for pending JS after setting password
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user