‪TYPO3CMS  10.4
NavigationComponentTreeCest.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  $treeArea = '.scaffold-content-navigation-expanded';
41  $I->wantTo('check Page Module for Expands And Collapse');
42  $I->click('Page');
43  $I->waitForElement($treeArea);
44  $I->see('New TYPO3 site', $treeArea);
45  $I->wantTo('check Page Module for Collapse');
46  $I->click('button.t3js-topbar-button-navigationcomponent');
47  $I->waitForElementNotVisible($treeArea);
48  $I->cantSee('New TYPO3 site', $treeArea);
49  $I->wantTo('check Page Module for Expands');
50  $I->click('button.t3js-topbar-button-navigationcomponent');
51  $I->waitForElement($treeArea);
52 
53  $I->see('New TYPO3 site', $treeArea);
54  }
55 
60  {
61  $I->wantTo('check File Module for Expands And Collapse');
62  $I->click('Filelist');
63  $I->switchToIFrame('nav_frame');
64  $I->waitForElement('.t3js-module-body');
65  $I->see('fileadmin', '.t3js-module-body');
66  $I->switchToMainFrame();
67  $I->wantTo('check File Module for Collapse');
68  $I->click('button.t3js-topbar-button-navigationcomponent');
69  $I->waitForElementNotVisible('.scaffold-content-navigation-expanded');
70  $I->wantTo('check File Module for Expands');
71  $I->click('button.t3js-topbar-button-navigationcomponent');
72  $I->switchToIFrame('nav_frame');
73  $I->waitForElement('.t3js-module-body');
74  $I->see('fileadmin', '.t3js-module-body');
75  $I->switchToMainFrame();
76  }
77 }
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Topbar\NavigationComponentTreeCest\checkTreeExpandsAndCollapseByFileModule
‪checkTreeExpandsAndCollapseByFileModule(BackendTester $I)
Definition: NavigationComponentTreeCest.php:59
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Topbar
Definition: BookmarkCest.php:18
‪TYPO3\CMS\Core\Tests\Acceptance\Support\BackendTester
Definition: BackendTester.php:27
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Topbar\NavigationComponentTreeCest\_before
‪_before(BackendTester $I)
Definition: NavigationComponentTreeCest.php:30
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Topbar\NavigationComponentTreeCest\checkTreeExpandsAndCollapseByPageModule
‪checkTreeExpandsAndCollapseByPageModule(BackendTester $I)
Definition: NavigationComponentTreeCest.php:38
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Topbar\NavigationComponentTreeCest
Definition: NavigationComponentTreeCest.php:26