‪TYPO3CMS  9.5
NavigationComponentTreeCest.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 
19 
24 {
28  public function ‪_before(‪BackendTester $I)
29  {
30  $I->useExistingSession('admin');
31  }
32 
37  {
38  $treeArea = '.scaffold-content-navigation-expanded';
39  $I->wantTo('check Page Module for Expands And Collapse');
40  $I->click('Page');
41  $I->waitForElement($treeArea);
42  $I->see('New TYPO3 site', $treeArea);
43  $I->wantTo('check Page Module for Collapse');
44  $I->click('button.t3js-topbar-button-navigationcomponent');
45  $I->waitForElementNotVisible($treeArea);
46  $I->cantSee('New TYPO3 site', $treeArea);
47  $I->wantTo('check Page Module for Expands');
48  $I->click('button.t3js-topbar-button-navigationcomponent');
49  $I->waitForElement($treeArea);
50 
51  $I->see('New TYPO3 site', $treeArea);
52  }
53 
58  {
59  $I->wantTo('check File Module for Expands And Collapse');
60  $I->click('Filelist');
61  $I->switchToIFrame('nav_frame');
62  $I->waitForElement('.t3js-module-body');
63  $I->see('fileadmin', '.t3js-module-body');
64  $I->switchToMainFrame();
65  $I->wantTo('check File Module for Collapse');
66  $I->click('button.t3js-topbar-button-navigationcomponent');
67  $I->waitForElementNotVisible('.scaffold-content-navigation-expanded');
68  $I->wantTo('check File Module for Expands');
69  $I->click('button.t3js-topbar-button-navigationcomponent');
70  $I->switchToIFrame('nav_frame');
71  $I->waitForElement('.t3js-module-body');
72  $I->see('fileadmin', '.t3js-module-body');
73  $I->switchToMainFrame();
74  }
75 }
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Topbar\NavigationComponentTreeCest\checkTreeExpandsAndCollapseByFileModule
‪checkTreeExpandsAndCollapseByFileModule(BackendTester $I)
Definition: NavigationComponentTreeCest.php:57
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Topbar
Definition: BookmarkCest.php:3
‪TYPO3\CMS\Core\Tests\Acceptance\Support\BackendTester
Definition: BackendTester.php:25
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Topbar\NavigationComponentTreeCest\_before
‪_before(BackendTester $I)
Definition: NavigationComponentTreeCest.php:28
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Topbar\NavigationComponentTreeCest\checkTreeExpandsAndCollapseByPageModule
‪checkTreeExpandsAndCollapseByPageModule(BackendTester $I)
Definition: NavigationComponentTreeCest.php:36
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Topbar\NavigationComponentTreeCest
Definition: NavigationComponentTreeCest.php:24