Commit 05a5d547 authored by sam marshall's avatar sam marshall
Browse files

MDL-64979 Behat: Add option to increase timeouts

parent a713ed3b
......@@ -52,7 +52,7 @@ class behat_theme_bootstrapbase_behat_admin extends behat_admin {
// We expect admin block to be visible, otherwise go to homepage.
if (!$this->getSession()->getPage()->find('css', '.block_settings')) {
$this->getSession()->visit($this->locate_path('/'));
$this->wait(self::TIMEOUT * 1000, self::PAGE_READY_JS);
$this->wait(self::get_timeout() * 1000, self::PAGE_READY_JS);
}
// Search by label.
......@@ -61,7 +61,7 @@ class behat_theme_bootstrapbase_behat_admin extends behat_admin {
$submitsearch = $this->find('css', 'form.adminsearchform input[type=submit]');
$submitsearch->press();
$this->wait(self::TIMEOUT * 1000, self::PAGE_READY_JS);
$this->wait(self::get_timeout() * 1000, self::PAGE_READY_JS);
// Admin settings does not use the same DOM structure than other moodle forms
// but we also need to use lib/behat/form_field/* to deal with the different moodle form elements.
......
......@@ -198,7 +198,7 @@ class behat_theme_bootstrapbase_behat_filepicker extends behat_filepicker {
$selectfilebutton->click();
// We wait for all the JS to finish as it is performing an action.
$this->getSession()->wait(self::TIMEOUT, self::PAGE_READY_JS);
$this->getSession()->wait(self::get_timeout(), self::PAGE_READY_JS);
if ($overwriteaction !== false) {
$overwritebutton = $this->find_button($overwriteaction);
......@@ -206,7 +206,7 @@ class behat_theme_bootstrapbase_behat_filepicker extends behat_filepicker {
$overwritebutton->click();
// We wait for all the JS to finish.
$this->getSession()->wait(self::TIMEOUT, self::PAGE_READY_JS);
$this->getSession()->wait(self::get_timeout(), self::PAGE_READY_JS);
}
}
......
......@@ -99,7 +99,7 @@ class behat_theme_bootstrapbase_behat_repository_upload extends behat_repository
$submit->press();
// We wait for all the JS to finish as it is performing an action.
$this->getSession()->wait(self::TIMEOUT, self::PAGE_READY_JS);
$this->getSession()->wait(self::get_timeout(), self::PAGE_READY_JS);
if ($overwriteaction !== false) {
$overwritebutton = $this->find_button($overwriteaction);
......@@ -107,7 +107,7 @@ class behat_theme_bootstrapbase_behat_repository_upload extends behat_repository
$overwritebutton->click();
// We wait for all the JS to finish.
$this->getSession()->wait(self::TIMEOUT, self::PAGE_READY_JS);
$this->getSession()->wait(self::get_timeout(), self::PAGE_READY_JS);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment