Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/JoomlaBrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function installJoomla()
$I->click(['link' => 'Next']);

$this->debug('I Fill the form for creating the Joomla site Database');
$I->waitForText('Database Configuration', 10,['css' => 'h3']);
$I->waitForText('Database Configuration',60,['css' => 'h3']);

$this->debug('I select MySQLi');
$I->selectOption(['id' => 'jform_db_type'], $this->config['database type']);
Expand All @@ -130,7 +130,7 @@ public function installJoomla()
$I->waitForElementVisible(['id' => 'jform_sample_file-lbl'],30);

$this->debug('I install joomla with or without sample data');
$I->waitForText('Finalisation', 10, ['xpath' => '//h3']);
$I->waitForText('Finalisation',60, ['xpath' => '//h3']);
// @todo: installation of sample data needs to be created
//if ($this->config['install sample data']) :
// $this->debug('I install Sample Data:' . $this->config['sample data']);
Expand Down Expand Up @@ -218,15 +218,15 @@ public function setErrorReportingToDevelopment()
$this->debug('I open Joomla Global Configuration Page');
$I->amOnPage('/administrator/index.php?option=com_config');
$this->debug('I wait for Global Configuration title');
$I->waitForText('Global Configuration',10,['css' => '.page-title']);
$I->waitForText('Global Configuration',60,['css' => '.page-title']);
$this->debug('I open the Server Tab');
$I->click(['link' => 'Server']);
$this->debug('I wait for error reporting dropdown');
$I->selectOptionInChosen('Error Reporting', 'Development');
$this->debug('I click on save');
$I->click(['xpath' => "//button[@onclick=\"Joomla.submitbutton('config.save.application.apply')\"]"]);
$this->debug('I wait for global configuration being saved');
$I->waitForText('Global Configuration',10,['css' => '.page-title']);
$I->waitForText('Global Configuration',60,['css' => '.page-title']);
$I->see('Configuration successfully saved.',['id' => 'system-message-container']);
}

Expand Down Expand Up @@ -452,7 +452,7 @@ public function uninstallExtension($extensionName)
$I->waitForText('was successful','30', ['id' => 'system-message-container']);
$I->see('was successful', ['id' => 'system-message-container']);
$I->searchForItem($extensionName);
$I->waitForText('There are no extensions installed matching your query.', 30, ['class' => 'alert-no-items']);
$I->waitForText('There are no extensions installed matching your query.',60, ['class' => 'alert-no-items']);
$I->see('There are no extensions installed matching your query.', ['class' => 'alert-no-items']);
$this->debug('Extension successfully uninstalled');
}
Expand Down Expand Up @@ -532,7 +532,7 @@ public function installLanguage($languageName)
$I->waitForElement($this->searchResultLanguageName($languageName), 30);
$I->click(['id' => "cb0"]);
$I->click(['xpath' => "//div[@id='toolbar-upload']/button"]);
$I->waitForText('was successful.', 30, ['id' => 'system-message-container']);
$I->waitForText('was successful.',60, ['id' => 'system-message-container']);
$I->see('No Matching Results',['class' => 'alert-no-items']);
$this->debug($languageName . ' successfully installed');
}
Expand Down