TYPO3 CMS  TYPO3_8-7
BlankPageCest.php
Go to the documentation of this file.
1 <?php
2 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 
20 
25 {
31  public function installTypo3OnMysql(InstallTester $I, Scenario $scenario)
32  {
33  // Calling frontend redirects to installer
34  $I->amOnPage('/');
35 
36  // EnvironmentAndFolders step
37  $I->waitForText('Installing TYPO3');
38  $I->see('System looks good. Continue!');
39  $I->click('System looks good. Continue!');
40 
41  // DatabaseConnection step
42  $I->waitForText('Database connection');
43  $I->fillField('#t3-install-step-mysqliManualConfiguration-username', $scenario->current('typo3InstallMysqlDatabaseUsername'));
44  $I->fillField('#t3-install-step-mysqliManualConfiguration-password', $scenario->current('typo3InstallMysqlDatabasePassword'));
45  $I->fillField('#t3-install-step-mysqliManualConfiguration-host', $scenario->current('typo3InstallMysqlDatabaseHost'));
46  $I->click('Continue');
47 
48  // DatabaseSelect step
49  $I->waitForText('Select database');
50  $I->click('#t3-install-form-db-select-type-new');
51  $I->fillField('#t3-install-step-database-new', $scenario->current('typo3InstallMysqlDatabaseName'));
52  $I->click('Continue');
53 
54  // DatabaseData step
55  $I->waitForText('Create user and import base data');
56  $I->fillField('#username', 'admin');
57  $I->fillField('#password', 'password');
58  $I->click('Continue');
59 
60  // DefaultConfiguration step - Create empty page
61  $I->waitForText('Installation done!');
62  $I->click('#create-site');
63  $I->click('Open the TYPO3 Backend');
64 
65  // Verify backend login successful
66  $I->waitForElement('#t3-username');
67  $I->fillField('#t3-username', 'admin');
68  $I->fillField('#t3-password', 'password');
69  $I->click('#t3-login-submit-section > button');
70  $I->waitForElement('.nav', 30);
71  $I->waitForElement('.scaffold-content iframe', 30);
72  $I->seeCookie('be_lastLoginProvider');
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 }
installTypo3OnMysql(InstallTester $I, Scenario $scenario)