‪TYPO3CMS  9.5
GetExtensionsCest.php
Go to the documentation of this file.
1 <?php
2 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 
18 use Facebook\WebDriver\WebDriverKeys;
20 
25 {
29  public function ‪_before(‪BackendTester $I)
30  {
31  $I->useExistingSession('admin');
32 
33  $I->click('Extensions', '#menu');
34  $I->switchToContentFrame();
35  $I->waitForElementVisible('#typo3-extension-list');
36 
37  $I->selectOption('[name="ExtensionManagerModuleMenu"]', 'Get Extensions');
38  $I->waitForElementVisible('#terTable_wrapper');
39 
40  // We expect exact two extensions created from the Fixtures
41  $I->seeNumberOfElements('#terTable tbody tr', 2);
42  }
43 
48  {
49  $I->see('superext');
50  $I->see('neededext');
51  }
52 
57  {
58  $I->seeElement('.pagination-wrap');
59  $I->see('Records 1 - 2');
60  }
61 
66  {
67  $I->fillField('input[name="tx_extensionmanager_tools_extensionmanagerextensionmanager[search]"]', 'superext');
68  $I->click('Go');
69  // @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)
70  $I->waitForElementVisible('#terSearchTable');
71  $I->wait(3);
72  $I->waitForElementNotVisible('#nprogess');
73  $I->seeNumberOfElements('#terSearchTable tbody tr', 1);
74  $I->see('Super Extension');
75 
76  $I->amGoingTo('search extension neededext and submit with enter');
77 
78  $I->fillField('input[name="tx_extensionmanager_tools_extensionmanagerextensionmanager[search]"]', 'neededext');
79  $I->pressKey('input[name="tx_extensionmanager_tools_extensionmanagerextensionmanager[search]"]', WebDriverKeys::ENTER);
80  $I->waitForElementVisible('#terSearchTable');
81  $I->wait(3);
82  $I->waitForElementNotVisible('div#nprogess');
83  $I->seeNumberOfElements('#terSearchTable tbody tr', 1);
84  $I->see('Needed Extension');
85  }
86 
91  {
92  $I->fillField('input[name="tx_extensionmanager_tools_extensionmanagerextensionmanager[search]"]', 'ext');
93  $I->click('Go');
94  $I->waitForElementVisible('#terSearchTable');
95  $I->seeNumberOfElements('#terSearchTable tbody tr', 2);
96  $I->wait(3);
97  $I->waitForElementNotVisible('div#nprogess');
98  $I->see('Super Extension');
99  $I->see('Needed Extension');
100  }
101 }
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Extensionmanager\GetExtensionsCest\checkSearchFilterListFindsExtensionKey
‪checkSearchFilterListFindsExtensionKey(BackendTester $I)
Definition: GetExtensionsCest.php:65
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Extensionmanager
Definition: GetExtensionsCest.php:3
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Extensionmanager\GetExtensionsCest\checkSearchFilterListFindsPartOfExtensionKey
‪checkSearchFilterListFindsPartOfExtensionKey(BackendTester $I)
Definition: GetExtensionsCest.php:90
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Extensionmanager\GetExtensionsCest\checkPageBrowserDisplaysTwoRecords
‪checkPageBrowserDisplaysTwoRecords(BackendTester $I)
Definition: GetExtensionsCest.php:56
‪TYPO3\CMS\Core\Tests\Acceptance\Support\BackendTester
Definition: BackendTester.php:25
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Extensionmanager\GetExtensionsCest\_before
‪_before(BackendTester $I)
Definition: GetExtensionsCest.php:29
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Extensionmanager\GetExtensionsCest\checkRetrievedExtensionsFromTerAreDisplayed
‪checkRetrievedExtensionsFromTerAreDisplayed(BackendTester $I)
Definition: GetExtensionsCest.php:47
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Extensionmanager\GetExtensionsCest
Definition: GetExtensionsCest.php:25