@@ -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