Skip to content

Commit 0999fe6

Browse files
committed
Merge pull request #72 from Kubik-Rubik/windows-fix-language-change
PR fixes the "Alert window" problem on Windows…
2 parents 1471e9e + b7466ee commit 0999fe6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/JoomlaBrowser.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,17 @@ 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)');
137+
$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');
136141
$I->selectOptionInChosen('#jform_language', 'English (United Kingdom)');
142+
$I->waitForText('Main Configuration', 10, 'h3');
137143
$this->debug('I fill Site Name');
138144
$I->fillField(['id' => 'jform_site_name'], 'Joomla CMS test');
139145
$this->debug('I fill Site Description');

0 commit comments

Comments
 (0)