‪TYPO3CMS  10.4
ModuleMenuButtonCest.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  $I->wantTo('see the module menu button behavior when shrinking the window');
41 
42  $I->seeElement('.scaffold-modulemenu-expanded');
43  $I->see('Web', '.modulemenu-name');
44  $I->seeElement('.modulemenu-icon');
45 
46  $I->amGoingTo('collapse the module menu');
47  $I->click('button.t3js-topbar-button-modulemenu span[data-identifier="actions-menu"]');
48 
49  $I->expectTo('see only the module menu icon');
50  $I->cantSeeElement('.scaffold-modulemenu-expanded');
51  $I->cantSee('Web', '.modulemenu-name');
52  $I->seeElement('.modulemenu-icon');
53 
54  $I->amGoingTo('shrink the window');
55  $I->resizeWindow(680, 420);
56  $I->expectTo('see no module menu');
57  $I->cantSeeElement('.modulemenu-icon');
58 
59  $I->amGoingTo('expand the module menu');
60  $I->click('button.t3js-topbar-button-modulemenu span[data-identifier="actions-menu"]');
61  $I->expectTo('see the expanded module menu');
62  $I->see('Web', '.modulemenu-name');
63  $I->seeElement('.modulemenu-icon');
64  }
65 
70  {
71  $I->wantTo('see the module menu button behavior when enlarging the window');
72 
73  $I->amGoingTo('shrink the window');
74  $I->resizeWindow(320, 400);
75  $I->expectTo('see the module menu');
76  $I->seeElement('.scaffold-modulemenu-expanded');
77  $I->see('Web', '.modulemenu-name');
78  $I->seeElement('.modulemenu-icon');
79 
80  $I->amGoingTo('collapse the module menu');
81  $I->click('button.t3js-topbar-button-modulemenu span[data-identifier="actions-menu"]');
82 
83  $I->expectTo('see no module menu');
84  $I->cantSeeElement('.scaffold-modulemenu-expanded');
85  $I->cantSee('Web', '.modulemenu-name');
86  $I->cantSeeElement('.modulemenu-icon');
87 
88  $I->amGoingTo('enlarge the window');
89  $I->resizeWindow(1280, 960);
90  $I->expectTo('see the module menu icon');
91  $I->seeElement('.modulemenu-icon');
92 
93  $I->amGoingTo('expand the module menu');
94  $I->click('button.t3js-topbar-button-modulemenu span[data-identifier="actions-menu"]');
95 
96  $I->expectTo('see the full module menu');
97  $I->seeElement('.scaffold-modulemenu-expanded');
98  $I->see('Web', '.modulemenu-name');
99  }
100 }
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Topbar\ModuleMenuButtonCest\checkModelMenuButtonFromBigToSmallScreen
‪checkModelMenuButtonFromBigToSmallScreen(BackendTester $I)
Definition: ModuleMenuButtonCest.php:38
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Topbar\ModuleMenuButtonCest\checkModelMenuButtonFromSmallToBigScreen
‪checkModelMenuButtonFromSmallToBigScreen(BackendTester $I)
Definition: ModuleMenuButtonCest.php:69
‪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\ModuleMenuButtonCest\_before
‪_before(BackendTester $I)
Definition: ModuleMenuButtonCest.php:30
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\Topbar\ModuleMenuButtonCest
Definition: ModuleMenuButtonCest.php:26