‪TYPO3CMS  ‪main
AbstractCest.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 
25 abstract class ‪AbstractCest
26 {
27  protected function ‪selectInContextMenu(‪ApplicationTester $I, array $path): void
28  {
29  foreach ($path as $depth => $selector) {
30  $contextMenuId = sprintf('#contentMenu%d', $depth);
31  $I->waitForElementVisible($contextMenuId, 5);
32  $I->click($selector, $contextMenuId);
33  }
34  }
35 
36  protected function ‪timeoutForAjaxRequest(‪ApplicationTester $I): void
37  {
38  $I->wait(0.5);
39  }
40 }
‪TYPO3\CMS\Core\Tests\Acceptance\Application\Impexp\AbstractCest\timeoutForAjaxRequest
‪timeoutForAjaxRequest(ApplicationTester $I)
Definition: AbstractCest.php:36
‪TYPO3\CMS\Core\Tests\Acceptance\Support\ApplicationTester
Definition: ApplicationTester.php:28
‪TYPO3\CMS\Core\Tests\Acceptance\Application\Impexp
Definition: AbstractCest.php:18
‪TYPO3\CMS\Core\Tests\Acceptance\Application\Impexp\AbstractCest
Definition: AbstractCest.php:26
‪TYPO3\CMS\Core\Tests\Acceptance\Application\Impexp\AbstractCest\selectInContextMenu
‪selectInContextMenu(ApplicationTester $I, array $path)
Definition: AbstractCest.php:27