Skip to content

Commit 17cdf8a

Browse files
committed
Merge pull request #42 from javigomez/moveWaitTo60
Move waiting times to 60 seconds to avoid false positives
2 parents f8711d7 + 9b31495 commit 17cdf8a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/JoomlaBrowser.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function installJoomla()
108108
$I->click(['link' => 'Next']);
109109

110110
$this->debug('I Fill the form for creating the Joomla site Database');
111-
$I->waitForText('Database Configuration', 10,['css' => 'h3']);
111+
$I->waitForText('Database Configuration',60,['css' => 'h3']);
112112

113113
$this->debug('I select MySQLi');
114114
$I->selectOption(['id' => 'jform_db_type'], $this->config['database type']);
@@ -130,7 +130,7 @@ public function installJoomla()
130130
$I->waitForElementVisible(['id' => 'jform_sample_file-lbl'],30);
131131

132132
$this->debug('I install joomla with or without sample data');
133-
$I->waitForText('Finalisation', 10, ['xpath' => '//h3']);
133+
$I->waitForText('Finalisation',60, ['xpath' => '//h3']);
134134
// @todo: installation of sample data needs to be created
135135
//if ($this->config['install sample data']) :
136136
// $this->debug('I install Sample Data:' . $this->config['sample data']);
@@ -218,15 +218,15 @@ public function setErrorReportingToDevelopment()
218218
$this->debug('I open Joomla Global Configuration Page');
219219
$I->amOnPage('/administrator/index.php?option=com_config');
220220
$this->debug('I wait for Global Configuration title');
221-
$I->waitForText('Global Configuration',10,['css' => '.page-title']);
221+
$I->waitForText('Global Configuration',60,['css' => '.page-title']);
222222
$this->debug('I open the Server Tab');
223223
$I->click(['link' => 'Server']);
224224
$this->debug('I wait for error reporting dropdown');
225225
$I->selectOptionInChosen('Error Reporting', 'Development');
226226
$this->debug('I click on save');
227227
$I->click(['xpath' => "//button[@onclick=\"Joomla.submitbutton('config.save.application.apply')\"]"]);
228228
$this->debug('I wait for global configuration being saved');
229-
$I->waitForText('Global Configuration',10,['css' => '.page-title']);
229+
$I->waitForText('Global Configuration',60,['css' => '.page-title']);
230230
$I->see('Configuration successfully saved.',['id' => 'system-message-container']);
231231
}
232232

@@ -452,7 +452,7 @@ public function uninstallExtension($extensionName)
452452
$I->waitForText('was successful','30', ['id' => 'system-message-container']);
453453
$I->see('was successful', ['id' => 'system-message-container']);
454454
$I->searchForItem($extensionName);
455-
$I->waitForText('There are no extensions installed matching your query.', 30, ['class' => 'alert-no-items']);
455+
$I->waitForText('There are no extensions installed matching your query.',60, ['class' => 'alert-no-items']);
456456
$I->see('There are no extensions installed matching your query.', ['class' => 'alert-no-items']);
457457
$this->debug('Extension successfully uninstalled');
458458
}
@@ -532,7 +532,7 @@ public function installLanguage($languageName)
532532
$I->waitForElement($this->searchResultLanguageName($languageName), 30);
533533
$I->click(['id' => "cb0"]);
534534
$I->click(['xpath' => "//div[@id='toolbar-upload']/button"]);
535-
$I->waitForText('was successful.', 30, ['id' => 'system-message-container']);
535+
$I->waitForText('was successful.',60, ['id' => 'system-message-container']);
536536
$I->see('No Matching Results',['class' => 'alert-no-items']);
537537
$this->debug($languageName . ' successfully installed');
538538
}

0 commit comments

Comments
 (0)