‪TYPO3CMS  10.4
BlankPageCest.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\Scenario;
22 
27 {
32  public function ‪installTypo3OnMysql(‪InstallTester $I, Scenario $scenario)
33  {
34  // Calling frontend redirects to installer
35  $I->amOnPage('/');
36 
37  // EnvironmentAndFolders step
38  $I->waitForText('Installing TYPO3');
39  $I->waitForText('No problems detected, continue with installation');
40  $I->click('No problems detected, continue with installation');
41 
42  // DatabaseConnection step
43  $I->waitForText('Select database', 30);
44  $I->fillField('#t3-install-step-mysqliManualConfiguration-username', $scenario->current('typo3InstallMysqlDatabaseUsername'));
45  $I->fillField('#t3-install-step-mysqliManualConfiguration-password', $scenario->current('typo3InstallMysqlDatabasePassword'));
46  $I->fillField('#t3-install-step-mysqliManualConfiguration-host', $scenario->current('typo3InstallMysqlDatabaseHost'));
47  $I->click('Continue');
48 
49  // DatabaseSelect step
50  $I->waitForText('Select a database', 30);
51  $I->click('#t3-install-form-db-select-type-new');
52  $I->fillField('#t3-install-step-database-new', $scenario->current('typo3InstallMysqlDatabaseName'));
53  $I->click('Continue');
54 
55  // DatabaseData step
56  $I->waitForText('Create Administrative User / Specify Site Name');
57  $I->fillField('#username', 'admin');
58  $I->fillField('#password', 'password');
59  $I->click('Continue');
60 
61  // DefaultConfiguration step - Create empty page
62  $I->waitForText('Installation Complete', 60);
63  $I->click('#create-site');
64  $I->click('Open the TYPO3 Backend');
65 
66  // Verify backend login successful
67  $I->waitForElement('#t3-username');
68  $I->fillField('#t3-username', 'admin');
69  $I->fillField('#t3-password', 'password');
70  $I->click('#t3-login-submit-section > button');
71  $I->waitForElement('.modulemenu', 30);
72  $I->waitForElement('.scaffold-content iframe', 30);
73  $I->seeCookie('be_typo_user');
74 
75  // Verify default frontend is rendered
76  $I->amOnPage('/');
77  $I->waitForText('Welcome to a default website made with TYPO3');
78  }
79 }
‪TYPO3\CMS\Core\Tests\Acceptance\Install\Mysql
Definition: BlankPageCest.php:18
‪TYPO3\CMS\Core\Tests\Acceptance\Support\InstallTester
Definition: InstallTester.php:27
‪TYPO3\CMS\Core\Tests\Acceptance\Install\Mysql\BlankPageCest
Definition: BlankPageCest.php:27
‪TYPO3\CMS\Core\Tests\Acceptance\Install\Mysql\BlankPageCest\installTypo3OnMysql
‪installTypo3OnMysql(InstallTester $I, Scenario $scenario)
Definition: BlankPageCest.php:32