From 82b0fe834886d9e4548a5791b2d8b7afca15a010 Mon Sep 17 00:00:00 2001 From: javier gomez Date: Mon, 3 Aug 2015 17:50:25 +0200 Subject: [PATCH] Fix joomla isntallation folder removal false positives This command was wrong. It was waiting for a visibility change in the element, but the right check is not to check if visibilty is changed but if the element has appeared in the DOM. --- src/JoomlaBrowser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JoomlaBrowser.php b/src/JoomlaBrowser.php index f14666c..077914f 100644 --- a/src/JoomlaBrowser.php +++ b/src/JoomlaBrowser.php @@ -158,7 +158,7 @@ public function installJoomlaRemovingInstallationFolder() $this->debug('Removing Installation Folder'); $I->click(['xpath' => "//input[@value='Remove installation folder']"]); - $I->waitForElementVisible(['xpath' => "//input[@value='Installation folder successfully removed']"]); + $I->waitForElement(['xpath' => "//input[@value='Installation folder successfully removed']"]); $this->debug('Joomla is now installed'); $I->see('Congratulations! Joomla! is now installed.',['xpath' => '//h3']); }