Skip to content

Commit b7466ee

Browse files
committed
Added delay of 1 second because on some machines the chosen is not fast enough to generate the selected field
1 parent 810647d commit b7466ee

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/JoomlaBrowser.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,15 @@ public function installJoomla()
129129
// I Wait for the text Main Configuration, meaning that the page is loaded
130130
$this->debug('I wait for Main Configuration');
131131
$I->waitForElement('#jform_language', 10);
132-
133-
$I->debug('I select en-GB as installation language');
132+
// Wait for chosen to render the field
133+
$I->wait(1);
134+
$I->debug('I select dk-DK as installation language');
134135
// Select a random language to force reloading of the lang strings after selecting English
135136
$I->selectOptionInChosen('#jform_language', 'Danish (DK)');
136137
$I->waitForText('Generel konfiguration', 10, 'h3');
138+
// Wait for chosen to render the field
139+
$I->wait(1);
140+
$I->debug('I select en-GB as installation language');
137141
$I->selectOptionInChosen('#jform_language', 'English (United Kingdom)');
138142
$I->waitForText('Main Configuration', 10, 'h3');
139143
$this->debug('I fill Site Name');

0 commit comments

Comments
 (0)