‪TYPO3CMS  11.5
IntroductionPackageCest.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;
23 
28 {
35  public function ‪installTypo3OnMysql(‪InstallTester $I, Scenario $scenario): void
36  {
37  // Calling frontend redirects to installer
38  $I->amOnPage('/');
39 
40  // EnvironmentAndFolders step
41  $I->waitForText('Installing TYPO3');
42  $I->waitForText('No problems detected, continue with installation');
43  $I->click('No problems detected, continue with installation');
44 
45  // DatabaseConnection step
46  $I->waitForText('Select database', 30);
47  $I->fillField('#t3-install-step-mysqliManualConfiguration-username', $scenario->current('typo3InstallMysqlDatabaseUsername'));
48  $I->fillField('#t3-install-step-mysqliManualConfiguration-password', $scenario->current('typo3InstallMysqlDatabasePassword'));
49  $I->fillField('#t3-install-step-mysqliManualConfiguration-host', $scenario->current('typo3InstallMysqlDatabaseHost'));
50  $I->click('Continue');
51 
52  // DatabaseSelect step
53  $I->waitForText('Select a database', 30);
54  $I->click('#t3-install-form-db-select-type-new');
55  $I->fillField('#t3-install-step-database-new', $scenario->current('typo3InstallMysqlDatabaseName'));
56  $I->click('Continue');
57 
58  // DatabaseData step
59  $I->waitForText('Create Administrative User / Specify Site Name');
60  $I->fillField('#username', 'admin');
61  $I->fillField('#password', 'password');
62  $I->click('Continue');
63 
64  // DefaultConfiguration step - Create empty page
65  $I->waitForText('Installation Complete', 60);
66  $I->click('#load-distributions');
67  $I->click('Open the TYPO3 Backend');
68 
69  // Verify backend login successful
70  $I->waitForElement('#t3-username');
71  $I->fillField('#t3-username', 'admin');
72  $I->fillField('#t3-password', 'password');
73  $I->click('#t3-login-submit-section > button');
74  $I->waitForElement('.modulemenu', 30);
75  $I->waitForElement('.scaffold-content iframe', 30);
76  $I->seeCookie('be_typo_user');
77 
78  // Loading might take some time
79  $I->wait(10);
80  $I->switchToIFrame('list_frame');
81  $I->waitForText('Get preconfigured distribution', 30);
82  $I->click('.t3-button-action-installdistribution');
83  $I->waitForText('You successfully installed the distribution \'introduction\'', 240);
84 
86 
87  // Verify default frontend is rendered
88  $I->amOnPage('/');
89  $I->waitForText('Deliver business value', 60);
90  $I->waitForText('100% free open source software');
91 
92  // Verify link
93  $I->click('[title="Features"]');
94  $I->waitForText('rich core feature set out-of-the-box', 30);
95  }
96 }
‪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\AbstractIntroductionPackage\manipulateSiteConfigurationOnlyForTesting
‪manipulateSiteConfigurationOnlyForTesting(InstallTester $I)
Definition: AbstractIntroductionPackage.php:27
‪TYPO3\CMS\Core\Tests\Acceptance\Install\AbstractIntroductionPackage
Definition: AbstractIntroductionPackage.php:23
‪TYPO3\CMS\Core\Tests\Acceptance\Install\Mysql\IntroductionPackageCest
Definition: IntroductionPackageCest.php:28
‪TYPO3\CMS\Core\Tests\Acceptance\Install\Mysql\IntroductionPackageCest\installTypo3OnMysql
‪installTypo3OnMysql(InstallTester $I, Scenario $scenario)
Definition: IntroductionPackageCest.php:35