From 4eec923c17694bfc22b7410b9e55e9a9cf75a538 Mon Sep 17 00:00:00 2001 From: puneet0191 Date: Wed, 23 May 2018 15:37:45 +0530 Subject: [PATCH] Updating See fucntions, passing String instead of Array --- src/JoomlaBrowser.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/JoomlaBrowser.php b/src/JoomlaBrowser.php index 50a8d88..8101ebf 100644 --- a/src/JoomlaBrowser.php +++ b/src/JoomlaBrowser.php @@ -322,7 +322,7 @@ public function installJoomlaRemovingInstallationFolder($databaseName = null, $d $this->waitForJS("return jQuery('form#adminForm input[name=instDefault]').attr('disabled') == 'disabled';", TIMEOUT); $this->debug('Joomla is now installed'); - $this->see('Congratulations! Joomla! is now installed.', ['xpath' => '//h3']); + $this->see('Congratulations! Joomla! is now installed.', '//h3'); } /** @@ -374,7 +374,7 @@ public function installJoomlaMultilingualSite($languages = array(), $databaseNam $this->wait(2); $this->debug('Joomla is now installed'); - $this->see('Congratulations! Joomla! is now installed.', ['xpath' => '//h3']); + $this->see('Congratulations! Joomla! is now installed.', '//h3'); } /** @@ -399,7 +399,7 @@ public function setErrorReportingToDevelopment() $this->click(['xpath' => "//div[@id='toolbar-apply']//button"]); $this->debug('I wait for global configuration being saved'); $this->waitForText('Global Configuration', TIMEOUT, ['css' => '.page-title']); - $this->see('Configuration saved.', ['id' => 'system-message-container']); + $this->see('Configuration saved.', '#system-message-container'); } /** @@ -727,7 +727,7 @@ public function enablePlugin($pluginName) $this->checkExistenceOf($pluginName); $this->click(['xpath' => "//input[@id='cb0']"]); $this->click(['xpath' => "//div[@id='toolbar-publish']/button"]); - $this->see(' enabled', ['id' => 'system-message-container']); + $this->see(' enabled', '#system-message-container'); } /** @@ -765,7 +765,7 @@ public function disablePlugin($pluginName) $this->checkExistenceOf($pluginName); $this->click(['xpath' => "//input[@id='cb0']"]); $this->click(['xpath' => "//div[@id='toolbar-unpublish']/button"]); - $this->see(' disabled', ['id' => 'system-message-container']); + $this->see(' disabled', '#system-message-container'); } /** @@ -787,7 +787,7 @@ public function uninstallExtension($extensionName) $this->click(['xpath' => "//div[@id='toolbar-delete']/button"]); $this->acceptPopup(); $this->waitForText('was successful', '30', ['id' => 'system-message-container']); - $this->see('was successful', ['id' => 'system-message-container']); + $this->see('was successful', '#system-message-container'); $this->searchForItem($extensionName); $this->waitForText( 'There are no extensions installed matching your query.', @@ -836,7 +836,7 @@ public function checkExistenceOf($name) { $this->debug("Verifying if $name exist in search result"); $this->seeElement(['xpath' => "//form[@id='adminForm']/div/table/tbody"]); - $this->see($name, ['xpath' => "//form[@id='adminForm']/div/table/tbody"]); + $this->see($name, "//form[@id='adminForm']/div/table/tbody"); } /** @@ -872,7 +872,7 @@ public function installLanguage($languageName) $this->click(['id' => "cb0"]); $this->click(['xpath' => "//div[@id='toolbar-upload']/button"]); $this->waitForText('was successful.', TIMEOUT, ['id' => 'system-message-container']); - $this->see('No Matching Results', ['class' => 'alert-no-items']); + $this->see('No Matching Results', '.alert-no-items'); $this->debug($languageName . ' successfully installed'); } @@ -1193,7 +1193,7 @@ public function createCategory($title, $extension = '') $this->debug('see a success message after saving the category'); - $this->see('Category saved', ['id' => 'system-message-container']); + $this->see('Category saved', '#system-message-container'); $this->checkForPhpNoticesOrWarnings(); } }