‪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 ‪installTypo3OnSqlite(‪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');
47  $I->selectOption('#t3js-connect-database-driver', 'Manually configured SQLite connection');
48  $I->click('Continue');
49 
50  // DatabaseData step
51  $I->waitForText('Create Administrative User / Specify Site Name');
52  $I->fillField('#username', 'admin');
53  $I->fillField('#password', 'password');
54  $I->click('Continue');
55 
56  // DefaultConfiguration step - load distributions
57  $I->waitForText('Installation Complete', 60);
58  $I->click('#load-distributions');
59  $I->click('Open the TYPO3 Backend');
60 
61  // Verify backend login successful
62  $I->waitForElement('#t3-username');
63  $I->fillField('#t3-username', 'admin');
64  $I->fillField('#t3-password', 'password');
65  $I->click('#t3-login-submit-section > button');
66  $I->waitForElement('.modulemenu', 30);
67  $I->waitForElement('.scaffold-content iframe', 30);
68  $I->seeCookie('be_typo_user');
69 
70  // Loading might take some time
71  $I->wait(10);
72  $I->switchToIFrame('list_frame');
73  $I->waitForText('Get preconfigured distribution', 30);
74  $I->click('.t3-button-action-installdistribution');
75  $I->waitForText('You successfully installed the distribution \'introduction\'', 240);
76 
78 
79  // Verify default frontend is rendered
80  $I->amOnPage('/');
81  $I->waitForText('Deliver business value', 60);
82  $I->waitForText('100% free open source software');
83 
84  // Verify link
85  $I->click('[title="Features"]');
86  $I->waitForText('rich core feature set out-of-the-box', 30);
87  }
88 }
‪TYPO3\CMS\Core\Tests\Acceptance\Support\InstallTester
Definition: InstallTester.php:27
‪TYPO3\CMS\Core\Tests\Acceptance\Install\Sqlite
Definition: BlankPageCest.php:18
‪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\Sqlite\IntroductionPackageCest
Definition: IntroductionPackageCest.php:28
‪TYPO3\CMS\Core\Tests\Acceptance\Install\Sqlite\IntroductionPackageCest\installTypo3OnSqlite
‪installTypo3OnSqlite(InstallTester $I, Scenario $scenario)
Definition: IntroductionPackageCest.php:35