Skip to content

Commit 28da15c

Browse files
committed
Add wait time, to support tests on windows with wamp.
We need to add some wait times after the choosen, because else the tests will fail on wamp.
1 parent 3a2e47c commit 28da15c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/JoomlaBrowser.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,12 @@ public function installJoomla()
133133
$I->debug('I select dk-DK as installation language');
134134
// Select a random language to force reloading of the lang strings after selecting English
135135
$I->selectOptionInChosen('#jform_language', 'Danish (DK)');
136+
$I->wait(5);
136137
$I->waitForText('Generel konfiguration', 10, 'h3');
137138
// Wait for chosen to render the field
138-
$I->wait(1);
139139
$I->debug('I select en-GB as installation language');
140140
$I->selectOptionInChosen('#jform_language', 'English (United Kingdom)');
141+
$I->wait(5);
141142
$I->waitForText('Main Configuration', 10, 'h3');
142143
$this->debug('I fill Site Name');
143144
$I->fillField(['id' => 'jform_site_name'], 'Joomla CMS test');
@@ -157,6 +158,7 @@ public function installJoomla()
157158
$I->click(['xpath' => "//fieldset[@id='jform_site_offline']/label[@for='jform_site_offline1']"]); // ['No Site Offline']
158159
$this->debug('I click Next');
159160
$I->click(['link' => 'Next']);
161+
$I->wait(1);
160162

161163
$this->debug('I Fill the form for creating the Joomla site Database');
162164
$I->waitForText('Database Configuration',60,['css' => 'h3']);
@@ -192,6 +194,7 @@ public function installJoomla()
192194
//endif;
193195
$I->selectOption(['id' => 'jform_sample_file'], ['id' => 'jform_sample_file0']); // No sample data
194196
$I->click(['link' => 'Install']);
197+
$I->wait(1);
195198

196199
// Wait while Joomla gets installed
197200
$this->debug('I wait for Joomla being installed');

0 commit comments

Comments
 (0)