2 declare(strict_types
= 1);
3 namespace TYPO3\CMS\Core\Tests\Acceptance\InstallTool
;
6 * This file is part of the TYPO3 CMS project.
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.
12 * For the full copyright and license information, please read the
13 * LICENSE.txt file that was distributed with this source code.
15 * The TYPO3 project - inspiring people to share!
18 use TYPO3\CMS\Core\Tests\Acceptance\Support\BackendTester
;
20 class MaintenanceCest
extends AbstractCest
22 public function _before(BackendTester
$I)
25 $this->logIntoInstallTool($I);
26 $I->click('Maintenance');
27 $I->see('Maintenance', 'h1');
29 public function flushCacheWorks(BackendTester
$I)
31 $I->click('Flush cache');
32 $I->waitForElementVisible('.alert-success');
33 $I->see('Caches cleared', '.alert-success h4');
36 public function analyzeDatabaseStructureWorks(BackendTester
$I)
38 $I->click('Analyze database');
39 $I->waitForElementVisible('.modal-dialog');
40 $I->see('Analyze Database Structure', '.modal-dialog h4');
41 $I->waitForElementVisible('.callout-success');
42 $I->see('Database schema is up to date. Good job!', '.callout-success h4');
43 $I->click('.t3js-modal-close');
44 $I->waitForElementNotVisible('.modal-dialog');
47 public function removeTemporaryAssetsWorks(BackendTester
$I)
49 $I->click('Scan temporary files');
50 $I->waitForElementVisible('.modal-dialog');
51 $I->see('Remove Temporary Assets', '.modal-dialog h4');
52 $I->click('.t3js-modal-close');
53 $I->waitForElementNotVisible('.modal-dialog');
56 public function dumpAutoloadWorks(BackendTester
$I)
58 $I->click('Dump autoload');
59 $I->waitForElementVisible('.alert-success');
60 $I->see('Successfully dumped class loading information for extensions.', '.alert-success h4');
63 public function clearPersistentTablesWorks(BackendTester
$I)
65 $I->click('Scan tables');
66 $I->waitForElementVisible('.modal-dialog');
67 $I->see('Clear Persistent Database Tables', '.modal-dialog h4');
68 $I->click('.t3js-modal-close');
69 $I->waitForElementNotVisible('.modal-dialog');
72 public function createAdminUserWorks(BackendTester
$I)
74 $I->click('Create Administrator');
75 $I->waitForElementVisible('.modal-dialog');
76 $I->see('Create Administrative User', '.modal-dialog h4');
77 $I->click('.t3js-modal-close');
78 $I->waitForElementNotVisible('.modal-dialog');
81 public function resetBackendUserPreferencesWorks(BackendTester
$I)
83 $I->click('Reset backend user preferences');
84 $I->waitForElementVisible('.alert-success');
85 $I->see('Preferences of all backend users have been reset', '.alert-success h4');
88 public function manageLanguagePacksWorks(BackendTester
$I)
90 $I->click('Manage languages');
91 $I->waitForElementVisible('.modal-dialog');
92 $I->see('Manage Language Packs', '.modal-dialog h4');
93 $I->see('Active Languages', '.modal-dialog h3');
94 $I->click('.t3js-modal-close');
95 $I->waitForElementNotVisible('.modal-dialog');