‪TYPO3CMS  10.4
ModuleMenuCest.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 
21 
26 {
30  public function ‪_before(‪BackendTester $I)
31  {
32  $I->useExistingSession('admin');
33  }
34 
39  {
40  // A sub-element of web module is shown
41  $I->waitForElementVisible('#web + .modulemenu-group-container .modulemenu-action');
42  $I->seeElement('#web + .modulemenu-group-container .modulemenu-action');
43 
44  // Collapse web module and verify sub elements are hidden
45  $I->wantTo('collapse the menu element');
46  $I->waitForElementVisible('#web');
47  $I->click('#web');
48  $I->waitForElementNotVisible('#web + .modulemenu-group-container .modulemenu-action');
49  $I->dontSeeElement('#web + .modulemenu-group-container .modulemenu-action');
50 
51  // Expand again and verify sub elements are shown
52  $I->wantTo('expand the menu element again');
53  $I->click('#web');
54  $I->waitForElementVisible('#web + .modulemenu-group-container .modulemenu-action');
55  $I->seeElement('#web + .modulemenu-group-container .modulemenu-action');
56  }
57 
62  {
63  $I->seeNumberOfElements('#web + .modulemenu-group-container .modulemenu-action', [2, 20]);
64 
65  $I->wantTo('check that the second element has no "modulemenu-action-active" class\'');
66  $I->cantSeeElement('#web_list.modulemenu-action-active');
67  $I->click('#web_list');
68 
69  $I->wantTo('see that the second element has an "modulemenu-action-active" class');
70  $I->canSeeElement('#web_list.modulemenu-action-active');
71  }
72 }
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\General\ModuleMenuCest\checkIfModuleMenuIsCollapsible
‪checkIfModuleMenuIsCollapsible(BackendTester $I)
Definition: ModuleMenuCest.php:38
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\General\ModuleMenuCest
Definition: ModuleMenuCest.php:26
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\General\ModuleMenuCest\selectingAModuleDoesHighlightIt
‪selectingAModuleDoesHighlightIt(BackendTester $I)
Definition: ModuleMenuCest.php:61
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\General\ModuleMenuCest\_before
‪_before(BackendTester $I)
Definition: ModuleMenuCest.php:30
‪TYPO3\CMS\Core\Tests\Acceptance\Support\BackendTester
Definition: BackendTester.php:27
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\General
Definition: ModuleMenuCest.php:18