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