/**
  * @depends installJoomla
  */
 public function installWeblinks(\AcceptanceTester $I)
 {
     $I->doAdministratorLogin();
     $I->comment('get Weblinks repository folder from acceptance.suite.yml (see _support/AcceptanceHelper.php)');
     $path = $I->getConfiguration('repo_folder');
     $I->installExtensionFromFolder($path . 'src/com_weblinks/');
     $I->doAdministratorLogout();
 }
示例#2
0
 /**
  * @depends installJoomla
  */
 public function installWeblinks(\AcceptanceTester $I)
 {
     $I->doAdministratorLogin();
     $I->comment('get Weblinks repository folder from acceptance.suite.yml (see _support/AcceptanceHelper.php)');
     // URL where the package file to install is located (mostly the same as joomla-cms)
     $url = $I->getConfiguration('url');
     $I->installExtensionFromUrl($url . "/pkg-weblinks-current.zip");
     $I->doAdministratorLogout();
 }
示例#3
0
 public function installNeno(AcceptanceTester $I)
 {
     $I->maximizeWindow();
     $I->am('Administrator');
     $I->installJoomla();
     $I->doAdministratorLogin();
     $I->setErrorReportingToDevelopment();
     $I->amOnPage("/administrator/");
     $I->click("Extensions");
     $I->click("Extension Manager");
     $I->click("Upload Package File");
     $path = $I->getConfiguration('repo_folder');
     // Installing library
     $I->installExtensionFromDirectory($path . 'lib_neno');
     // Installing Plugin
     $I->installExtensionFromDirectory($path . 'plg_system_neno');
     // Installing Component
     $I->installExtensionFromDirectory($path . 'com_neno');
     // Enabling plugin
     $I->enablePlugin('Neno plugin');
     // Going to Neno
     $I->click("Components");
     $I->wait(1);
     $I->click("Neno Translate");
     $I->wait(1);
     // Get started Screen
     $I->click('Get Started');
     $I->waitForJS('return jQuery.active == 0', 5);
     $I->wait(1);
     // First step - Source language
     $I->see('Next');
     $I->click(['xpath' => "//button[@type=\"button\"]"]);
     $I->wait(1);
     // Second step - Translation methods
     $I->click('Next');
     $I->waitForJS('return jQuery.active == 0', 5);
     // Third step- Install language(s)
     $I->wait(1);
     $I->click("//*[@id=\"add-languages-button\"]");
     $I->waitForJS("return jQuery.active == 0", 5);
     $I->waitForElementVisible(['class' => 'ar-AA'], 5);
     $I->wait(1);
     $I->click(['class' => 'ar-AA']);
     $I->see('Close', ['class' => 'close-button']);
     $I->click(['class' => 'close-button'], ['xpath' => "//*[@id=\"languages-modal\"]"]);
     $I->click(['xpath' => "(//button[@type=\"button\"])[4]"]);
     // Fourth step- Installing Neno
     $I->wait(1);
     $I->click("#backup-created-checkbox");
     $I->click("#proceed-button");
     // Fifth step- Installing Neno has been accomplish successfully
     //$I->waitForJS('return jQuery.installation == 1', 1000);
     $I->waitForElement(".icon-thumbs-up", 300);
     $I->doAdministratorLogout();
 }
示例#4
0
 /**
  * @depends installCmc
  */
 public function initializeCmcSettings(\AcceptanceTester $I)
 {
     $I->doAdministratorLogin();
     $I->comment('Mailchimp API Key from acceptance.suite.yml (see _support/AcceptanceHelper.php)');
     $key = $I->getConfiguration('api_key');
     $I->amGoingTo('Navigate to CMC page in /administrator/');
     $I->amOnPage('administrator/index.php?option=com_cmc&view=cpanel');
     // Wait for text dashboard - wait for text not working
     $I->waitForElementVisible('#ctitle');
     $I->checkForPhpNoticesOrWarnings();
     // Options
     $I->click('Options');
     $I->waitForText('Configuration', '30', ['css' => 'h1']);
     $I->fillField(['id' => 'jform_api_key'], $key);
     $I->click('Save & Close');
     // Basck in the dashboard
     $I->waitForElementVisible('#ctitle');
     $I->doAdministratorLogout();
 }
示例#5
0
 public function installNeno(AcceptanceTester $I)
 {
     $I->am('Administrator');
     $I->installJoomla();
     $I->doAdministratorLogin();
     $I->setErrorReportingToDevelopment();
     $I->amOnPage("/administrator/");
     $I->click("Extensions");
     $I->click("Extension Manager");
     $I->click("Upload Package File");
     $path = $I->getConfiguration('repo_folder');
     // Installing library
     $I->installExtensionFromDirectory($path . 'lib_neno');
     // Installing Plugin
     $I->installExtensionFromDirectory($path . 'plg_system_neno');
     // Installing Component
     $I->installExtensionFromDirectory($path . 'com_neno');
     /*
     		// Enabling plugin
     		$I->enablePlugin('Neno plugin');
     
     		// Going to Neno
     		$I->click("Components");
     		$I->click("Neno");
     		$I->wait(5);
     
     		// Get started Screen
     		$I->click('Get Started');
     		$I->waitForJS('return jQuery.active == 0', 20);
     		$I->wait(5);
     
     		// First step - Source language
     		$I->see('Next', 'button');
     		$I->click(['xpath' => "//button[@type='button']"]);
     		$I->waitForJS('return jQuery.active == 0', 20);
     		$I->wait(5);
     
     		// Second step - Translation methods
     		$I->see('Next');
     		$I->click(['xpath' => "//button[@type='button']"]);
     		$I->waitForJS('return jQuery.active == 0', 20);
     		$I->wait(5);
     
     		// Third step- Install language(s)
     		$I->click(['css' => "#add-languages-button"]);
     		$I->waitForJS('return jQuery.active == 0', 20);
     		$I->wait(5);
     		$I->waitForElementVisible(['css' => '#languages-modal']);
     		$I->click(['css' => "[data-language='de-DE']"]);
     		$I->click(['css' => "[data-language='es-ES']"]);
     		$I->wait(10);
     		$I->seeElement(['css' => ".loading-iso-de-DE"]);
     		$I->seeElement(['css' => ".loading-iso-es-ES"]);
     		$I->click("Close");
     		$I->click(['xpath' => "(//button[@type='button'])[4]"]);
     
     		// Fourth step- Installing Neno
     		$I->wait(5);
     		$I->click(['css' => "#backup-created-checkbox"]);
     		$I->click(['css' => "label.checkbox"]);
     		$I->click(['css' => "#proceed-button"]);
     
     		// Fifth step- Installing Neno has been accomplish successfully
     		$I->waitForElement("#submenu > li > a");
     		$I->doAdministratorLogout();*/
 }
示例#6
0
<?php

/**
 * @package     Joomla
 * @subpackage  Tests
 *
 * @copyright   Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
$I = new \AcceptanceTester($scenario);
$I->wantTo('Install Joomla CMS');
$I->expect('no configuration.php is in the Joomla CMS folder');
$I->dontSeeFileFound('configuration.php', $I->getConfiguration('Joomla folder'));
$I->amOnPage('/installation/index.php');
// I Wait for the text Main Configuration, meaning that the page is loaded
$I->waitForText('Main Configuration', 10, 'h3');
// I instantiate the Installation Configuration Page Elements:
$configurationPage = \JoomlaInstallationConfigurationPage::$elements;
$I->click($configurationPage['Language Selector']);
$I->click($configurationPage[$I->getConfiguration('Language')]);
$I->fillField('Site Name', 'Joomla CMS test');
$I->fillField('Description', 'Site for testing Joomla CMS');
// I get the configuration from acceptance.suite.yml (see: tests/_support/acceptancehelper.php)
$I->fillField('Admin Email', $I->getConfiguration('Admin email'));
$I->fillField('Admin Username', $I->getConfiguration('Username'));
$I->fillField('Admin Password', $I->getConfiguration('Password'));
$I->fillField('Confirm Admin Password', $I->getConfiguration('Password'));
$I->click($configurationPage['No Site Offline']);
$I->click('Next');
$I->wantTo('Fill the form for creating the Joomla site Database');
$I->waitForText('Database Configuration', 10, 'h3');
示例#7
0
<?php

/**
 * @package     redCORE
 * @subpackage  Cept
 * @copyright   Copyright (C) 2008 - 2015 redCOMPONENT.com. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
// Load the Step Object Page
$I = new \AcceptanceTester($scenario);
$I->wantToTest('Joomla 3 Installation');
$I->installJoomla();
$I->doAdministratorLogin();
$I->setErrorReportingToDevelopment();
$path = $I->getConfiguration('repo_folder');
$I->installExtensionFromDirectory($path);