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