Closed PetarT closed 7 years ago
My temp solution for this one is:
<?php
/**
* @package RedITEM
* @subpackage Cept
* @copyright Copyright (C) 2008 - 2015 redCOMPONENT.com. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/* Name of the File is Kept as ZZUninstallExtension instead of UninstallExtension
So that this tests is loaded at the last during the test execution */
// Load the Step Object Page
$I = new AcceptanceTester($scenario);
$I->wantTo('Uninstall redITEM Extensions');
$I->doAdministratorLogin();
$I->amOnPage('/administrator/index.php?option=com_installer&view=manage');
$I->click("//button[@class='btn hasTooltip js-stools-btn-filter']");
$I->selectOptionInChosen('#filter_type', 'Component');
$I->fillField('#filter_search', 'redITEM');
$I->pressKey(['id' => 'filter_search'], WebDriverKeys::ENTER);
$I->waitForElement('#manageList');
$I->click("//input[@id='cb0']");
$I->click("Uninstall");
$I->acceptPopup();
$I->see('Uninstalling the component was successful', '#system-message-container');
$I->fillField('#filter_search', 'redITEM');
$I->pressKey(['id' => 'filter_search'], WebDriverKeys::ENTER);
$I->waitForText('There are no extensions installed matching your query.', 10, '.alert-no-items');
$I->see('There are no extensions installed matching your query.', '.alert-no-items');
$I->selectOptionInChosen('#filter_type', '- Select Type -');
Hope this one can help you out for solving issue :)
Hi Petar! Can you do a pull request with your changes? Thank you! Yves
I had no problems with the develop version. But I could not get the PR to run without failure. I am new. Perhaps I made a mistake. That is why I explain what I did:
1. I'm updating my project
1. Question: I see the message “Joomla! 3.6.3 is available: “ in the head, also the version in the foot is up to date? Do I work with the correct version?
2. I create a new branch
_2. Question: Is Joomla-Browser in the GSCO16 Project not the current version or did I made an mistake? _
3. I fetched the current joomla-browser-version from github
class InstallAdventComponentCest
{
public function installAdventComponent(\AcceptanceTester $I)
{
$I->am('Administrator');
$I->doAdministratorLogin();
$I->installExtensionFromFolder('/var/www/html/gsoc16_browser-automated-tests/tmp/adventskalender-master', 'Component');
}
public function uninstallAdventComponent(\AcceptanceTester $I)
{
$I->am('Administrator');
$I->doAdministratorLogin();
//$I->uninstallExtension('com_advent ', 'Component');
$I->uninstallExtension('com_advent ');
}
}
./tests/codeception/vendor/bin/robo run:test -> selecting my options
and I had no problem. See attached message.7. I applied the patch
@Petar
I am really new. Perhaps I do not see your real problem. But could you please explain me, what problem you exactly want to solve with this PR?
First I get this error:
[Error] Call to undefined method Codeception\Module\JoomlaBrowser::wantTo()
Where do I find the method wantTo()
@astridx checkout my PR there https://github.com/joomla-projects/joomla-browser/pull/120/files for more info. You will see what changes I mention.
@PetarT Are you still facing this issue? I think in the latest version we have addressed this.
Closing for now.. If you still have issues feel free to reopen it any time.
Heya all folks! Would like to report an issue with latest joomla-browser function uninstallExtension there. More info can be found in log and uninstall file I provided: uninstall.txt ZZUninstallExtensionCept.txt
Error: