‪TYPO3CMS  10.4
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(‪BackendTester $I)
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 
50  {
51  $I->see('superext');
52  $I->see('neededext');
53  }
54 
59  {
60  $I->seeElement('.pagination-wrap');
61  $I->see('Records 1 - 2');
62  }
63 
68  {
69  $I->fillField('input[name="tx_extensionmanager_tools_extensionmanagerextensionmanager[search]"]', 'superext');
70  $I->click('Go');
71  // @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)
72  $I->waitForElementVisible('#terSearchTable');
73  $I->wait(3);
74  $I->waitForElementNotVisible('#nprogess');
75  $I->seeNumberOfElements('#terSearchTable tbody tr', 1);
76  $I->see('Super Extension');
77 
78  $I->amGoingTo('search extension neededext and submit with enter');
79 
80  $I->fillField('input[name="tx_extensionmanager_tools_extensionmanagerextensionmanager[search]"]', 'neededext');
81  $I->pressKey('input[name="tx_extensionmanager_tools_extensionmanagerextensionmanager[search]"]', WebDriverKeys::ENTER);
82  $I->waitForElementVisible('#terSearchTable');
83  $I->wait(3);
84  $I->waitForElementNotVisible('div#nprogess');
85  $I->seeNumberOfElements('#terSearchTable tbody tr', 1);
86  $I->see('Needed Extension');
87  }
88 
93  {
94  $I->fillField('input[name="tx_extensionmanager_tools_extensionmanagerextensionmanager[search]"]', 'ext');
95  $I->click('Go');
96  $I->waitForElementVisible('#terSearchTable');
97  $I->seeNumberOfElements('#terSearchTable tbody tr', 2);
98  $I->wait(3);
99  $I->waitForElementNotVisible('div#nprogess');
100  $I->see('Super Extension');
101  $I->see('Needed Extension');
102  }
103 }
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Extensionmanager\GetExtensionsCest\checkSearchFilterListFindsExtensionKey
‪checkSearchFilterListFindsExtensionKey(BackendTester $I)
Definition: GetExtensionsCest.php:67
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Extensionmanager
Definition: GetExtensionsCest.php:18
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Extensionmanager\GetExtensionsCest\checkSearchFilterListFindsPartOfExtensionKey
‪checkSearchFilterListFindsPartOfExtensionKey(BackendTester $I)
Definition: GetExtensionsCest.php:92
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Extensionmanager\GetExtensionsCest\checkPageBrowserDisplaysTwoRecords
‪checkPageBrowserDisplaysTwoRecords(BackendTester $I)
Definition: GetExtensionsCest.php:58
‪TYPO3\CMS\Core\Tests\Acceptance\Support\BackendTester
Definition: BackendTester.php:27
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Extensionmanager\GetExtensionsCest\_before
‪_before(BackendTester $I)
Definition: GetExtensionsCest.php:31
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Extensionmanager\GetExtensionsCest\checkRetrievedExtensionsFromTerAreDisplayed
‪checkRetrievedExtensionsFromTerAreDisplayed(BackendTester $I)
Definition: GetExtensionsCest.php:49
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Extensionmanager\GetExtensionsCest
Definition: GetExtensionsCest.php:27