Skip to content

Commit e86820f

Browse files
committed
wait for the folder to be deleted and then go further!
1 parent 0b43acd commit e86820f

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/JoomlaBrowser.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -204,18 +204,9 @@ public function installJoomlaRemovingInstallationFolder()
204204

205205
$this->debug('Removing Installation Folder');
206206
$I->click(['xpath' => "//input[@value='Remove installation folder']"]);
207+
207208
$I->debug('I wait for Removing Installation Folder button to become disabled');
208-
// @todo https://github.com/joomla-projects/joomla-browser/issues/45
209-
$I->wait(2);
210-
/*
211-
$I->waitForElementChange(
212-
['xpath' => "//input[@name='instDefault']"],
213-
function(WebDriverElement $el) {
214-
return !$el->isEnabled();
215-
},
216-
60
217-
);
218-
*/
209+
$I->waitForJS("return jQuery('form#adminForm input[name=instDefault]').attr('disabled') == 'disabled';", 60);
219210

220211
$I->debug('Joomla is now installed');
221212
$I->see('Congratulations! Joomla! is now installed.',['xpath' => '//h3']);

0 commit comments

Comments
 (0)