[TASK] Enable v8 acceptance testing again
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Acceptance / Backend / Topbar / HelpCest.php
1 <?php
2 namespace TYPO3\CMS\Core\Tests\Acceptance\Backend\Topbar;
3
4 /*
5 * This file is part of the TYPO3 CMS project.
6 *
7 * It is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License, either version 2
9 * of the License, or any later version.
10 *
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
13 *
14 * The TYPO3 project - inspiring people to share!
15 */
16
17 use TYPO3\CMS\Core\Tests\Acceptance\Support\BackendTester;
18 use TYPO3\TestingFramework\Core\Acceptance\Helper\Topbar;
19
20 /**
21 * Tests for the help module in the topbar
22 */
23 class HelpCest
24 {
25 /**
26 * Selector for the module container in the topbar
27 *
28 * @var string
29 */
30 public static $topBarModuleSelector = '#typo3-cms-backend-backend-toolbaritems-helptoolbaritem';
31
32 /**
33 * @param BackendTester $I
34 */
35 public function _before(BackendTester $I)
36 {
37 $I->useExistingSession('admin');
38 }
39
40 /**
41 * @param BackendTester $I
42 * @return BackendTester
43 */
44 public function canSeeModuleInTopbar(BackendTester $I)
45 {
46 $I->canSeeElement(self::$topBarModuleSelector);
47
48 return $I;
49 }
50
51 /**
52 * @depends canSeeModuleInTopbar
53 * @param BackendTester $I
54 */
55 public function seeStyleguideInHelpModule(BackendTester $I)
56 {
57 $I->click(Topbar::$dropdownToggleSelector, self::$topBarModuleSelector);
58 $I->canSee('Styleguide', self::$topBarModuleSelector);
59 $I->click('Styleguide', self::$topBarModuleSelector);
60 $I->switchToContentFrame();
61 $I->see('TYPO3 CMS Backend Styleguide', 'h1');
62 }
63 }