‪TYPO3CMS  11.5
GetExtensionsCest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
20 use Facebook\WebDriver\WebDriverKeys;
22 
27 {
31  public function ‪_before(‪ApplicationTester $I): void
32  {
33  $I->useExistingSession('admin');
34 
35  $I->click('Extensions', '#modulemenu');
36  $I->switchToContentFrame();
37  $I->waitForElementVisible('#typo3-extension-list');
38 
39  $I->selectOption('[name="ExtensionManagerModuleMenu"]', 'Get Extensions');
40  $I->waitForElementVisible('#terTable');
41 
42  // We expect exact two extensions created from the Fixtures
43  $I->seeNumberOfElements('#terTable tbody tr', 2);
44  }
45 
51  {
52  $I->see('superext');
53  $I->see('neededext');
54  }
55 
61  {
62  $I->dontSeeElement('.pagination-wrap');
63  $I->dontSee('Extensions 1 - 2');
64  }
65 
71  {
72  $I->fillField('input[name="tx_extensionmanager_tools_extensionmanagerextensionmanager[search]"]', 'superext');
73  $I->click('Go');
74  // @todo do something about the double loading of the table, it is rendered twice (not double, but once, then retrieve extension list loader, then second time)
75  $I->waitForElementVisible('#terSearchTable');
76  $I->wait(3);
77  $I->waitForElementNotVisible('#nprogess');
78  $I->seeNumberOfElements('#terSearchTable tbody tr', 1);
79  $I->see('Super Extension');
80 
81  $I->amGoingTo('search extension needed ext and submit with enter');
82 
83  $I->fillField('input[name="tx_extensionmanager_tools_extensionmanagerextensionmanager[search]"]', 'neededext');
84  $I->pressKey('input[name="tx_extensionmanager_tools_extensionmanagerextensionmanager[search]"]', WebDriverKeys::ENTER);
85  $I->waitForElementVisible('#terSearchTable');
86  $I->wait(3);
87  $I->waitForElementNotVisible('div#nprogess');
88  $I->seeNumberOfElements('#terSearchTable tbody tr', 1);
89  $I->see('Needed Extension');
90  }
91 
97  {
98  $I->fillField('input[name="tx_extensionmanager_tools_extensionmanagerextensionmanager[search]"]', 'ext');
99  $I->click('Go');
100  $I->waitForElementVisible('#terSearchTable');
101  $I->seeNumberOfElements('#terSearchTable tbody tr', 2);
102  $I->wait(3);
103  $I->waitForElementNotVisible('div#nprogess');
104  $I->see('Super Extension');
105  $I->see('Needed Extension');
106  }
107 }
‪TYPO3\CMS\Core\Tests\Acceptance\Application\Extensionmanager\GetExtensionsCest\checkRetrievedExtensionsFromTerAreDisplayed
‪checkRetrievedExtensionsFromTerAreDisplayed(ApplicationTester $I)
Definition: GetExtensionsCest.php:50
‪TYPO3\CMS\Core\Tests\Acceptance\Application\Extensionmanager\GetExtensionsCest\checkSearchFilterListFindsExtensionKey
‪checkSearchFilterListFindsExtensionKey(ApplicationTester $I)
Definition: GetExtensionsCest.php:70
‪TYPO3\CMS\Core\Tests\Acceptance\Support\ApplicationTester
Definition: ApplicationTester.php:27
‪TYPO3\CMS\Core\Tests\Acceptance\Application\Extensionmanager\GetExtensionsCest\checkSearchFilterListFindsPartOfExtensionKey
‪checkSearchFilterListFindsPartOfExtensionKey(ApplicationTester $I)
Definition: GetExtensionsCest.php:96
‪TYPO3\CMS\Core\Tests\Acceptance\Application\Extensionmanager
Definition: GetExtensionsCest.php:18
‪TYPO3\CMS\Core\Tests\Acceptance\Application\Extensionmanager\GetExtensionsCest
Definition: GetExtensionsCest.php:27
‪TYPO3\CMS\Core\Tests\Acceptance\Application\Extensionmanager\GetExtensionsCest\checkPaginationIsNotDisplayedForTwoRecords
‪checkPaginationIsNotDisplayedForTwoRecords(ApplicationTester $I)
Definition: GetExtensionsCest.php:60
‪TYPO3\CMS\Core\Tests\Acceptance\Application\Extensionmanager\GetExtensionsCest\_before
‪_before(ApplicationTester $I)
Definition: GetExtensionsCest.php:31