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