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