‪TYPO3CMS  11.5
InfoModuleCest.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 
20 use Codeception\Example;
23 
28 {
29  public function ‪_before(‪ApplicationTester $I, ‪PageTree $pageTree): void
30  {
31  $I->useExistingSession('admin');
32  $I->click('#web_info');
33  $I->waitForElement('#typo3-pagetree-tree .nodes .node', 5);
34  $pageTree->‪openPath(['styleguide TCA demo']);
35  $I->switchToContentFrame();
36  }
37 
43  public function ‪seeInfoSubModules(‪ApplicationTester $I, Example $exampleData): void
44  {
45  $I->amGoingTo('select ' . $exampleData['option'] . ' in dropdown');
46  $I->waitForElementVisible('.t3-js-jumpMenuBox');
47  $I->wait(1);
48  $I->selectOption('.t3-js-jumpMenuBox', $exampleData['option']);
49  $I->wait(1);
50  $I->waitForText($exampleData['expect']);
51  $I->see($exampleData['expect'], 'h1');
52  }
53 
57  protected function ‪infoMenuDataProvider(): array
58  {
59  return [
60  ['option' => 'Pagetree Overview', 'expect' => 'Pagetree Overview'],
61  ['option' => 'Localization Overview', 'expect' => 'Localization Overview'],
62  ['option' => 'Page TSconfig', 'expect' => 'Page TSconfig'],
63  ['option' => 'Log', 'expect' => 'Administration log'],
64  ];
65  }
66 }
‪TYPO3\CMS\Core\Tests\Acceptance\Application\Info\InfoModuleCest\_before
‪_before(ApplicationTester $I, PageTree $pageTree)
Definition: InfoModuleCest.php:29
‪TYPO3\CMS\Core\Tests\Acceptance\Support\ApplicationTester
Definition: ApplicationTester.php:27
‪TYPO3\CMS\Core\Tests\Acceptance\Application\Info
Definition: InfoModuleCest.php:18
‪TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\PageTree\openPath
‪openPath(array $path)
Definition: PageTree.php:76
‪TYPO3\CMS\Core\Tests\Acceptance\Application\Info\InfoModuleCest\infoMenuDataProvider
‪array[] infoMenuDataProvider()
Definition: InfoModuleCest.php:57
‪TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\PageTree
Definition: PageTree.php:31
‪TYPO3\CMS\Core\Tests\Acceptance\Application\Info\InfoModuleCest\seeInfoSubModules
‪seeInfoSubModules(ApplicationTester $I, Example $exampleData)
Definition: InfoModuleCest.php:43
‪TYPO3\CMS\Core\Tests\Acceptance\Application\Info\InfoModuleCest
Definition: InfoModuleCest.php:28