Skip to content

Commit 411a6eb

Browse files
committed
Merge pull request #52 from joomla-projects/multilingualchange
#45 Wait for element change in Multilingual install too
2 parents 2f89557 + a79fb54 commit 411a6eb

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/JoomlaBrowser.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,14 @@ public function installJoomlaRemovingInstallationFolder()
160160
$I->click(['xpath' => "//input[@value='Remove installation folder']"]);
161161
$I->debug('I wait for Removing Installation Folder button to become disabled');
162162
// @todo https://github.com/joomla-projects/joomla-browser/issues/45
163-
$I->wait(2);
164-
/*
165163
$I->waitForElementChange(
166164
['xpath' => "//input[@name='instDefault']"],
167165
function(WebDriverElement $el) {
168166
return !$el->isEnabled();
169167
},
170168
60
171169
);
172-
*/
170+
173171
$I->debug('Joomla is now installed');
174172
$I->see('Congratulations! Joomla! is now installed.',['xpath' => '//h3']);
175173
}
@@ -213,7 +211,13 @@ public function installJoomlaMultilingualSite($languages = array())
213211
$I->waitForText('Congratulations! Joomla! is now installed.', 60, ['xpath' => '//h3']);
214212
$this->debug('Removing Installation Folder');
215213
$I->click(['xpath' => "//input[@value='Remove installation folder']"]);
216-
$I->waitForElementVisible(['xpath' => "//input[@value='Installation folder successfully removed']"],60);
214+
$I->waitForElementChange(
215+
['xpath' => "//input[@name='instDefault']"],
216+
function(WebDriverElement $el) {
217+
return !$el->isEnabled();
218+
},
219+
60
220+
);
217221
$this->debug('Joomla is now installed');
218222
$I->see('Congratulations! Joomla! is now installed.',['xpath' => '//h3']);
219223
}

0 commit comments

Comments
 (0)