[TASK] Disable ext:introduction installer ac test
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Acceptance / Install / Postgresql / IntroductionPackageCest.php
1 <?php
2 declare(strict_types = 1);
3 namespace TYPO3\CMS\Core\Tests\Acceptance\Install\Postgresql;
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
18 use Codeception\Scenario;
19 use TYPO3\CMS\Core\Tests\Acceptance\Support\InstallTester;
20
21 /**
22 * Click through installer, go to backend, install introduction package
23 */
24 class IntroductionPackageCest
25 {
26 /**
27 * @param InstallTester $I
28 * @param Scenario $scenario
29 * @env postgresql
30 */
31 public function installTypo3OnPgSql(InstallTester $I, Scenario $scenario)
32 {
33 $scenario->skip('Disabled until ext:introduction and ext:bootstrap_package are relased as v10 compatible.');
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');
45 $I->selectOption('#t3js-connect-database-driver', 'Manually configured PostgreSQL connection');
46 $I->fillField('#t3-install-step-postgresManualConfiguration-username', $scenario->current('typo3InstallPostgresqlDatabaseUsername'));
47 $I->fillField('#t3-install-step-postgresManualConfiguration-password', $scenario->current('typo3InstallPostgresqlDatabasePassword'));
48 $I->fillField('#t3-install-step-postgresManualConfiguration-database', $scenario->current('typo3InstallPostgresqlDatabaseName'));
49 $I->fillField('#t3-install-step-postgresManualConfiguration-host', $scenario->current('typo3InstallPostgresqlDatabaseHost'));
50 $I->click('Continue');
51
52 // DatabaseData step
53 $I->waitForText('Create Administrative User / Specify Site Name');
54 $I->fillField('#username', 'admin');
55 $I->fillField('#password', 'password');
56 $I->click('Continue');
57
58 // DefaultConfiguration step - load distributions
59 $I->waitForText('Installation Complete');
60 $I->click('#load-distributions');
61 $I->click('Open the TYPO3 Backend');
62
63 // Verify backend login successful
64 $I->waitForElement('#t3-username');
65 $I->fillField('#t3-username', 'admin');
66 $I->fillField('#t3-password', 'password');
67 $I->click('#t3-login-submit-section > button');
68 $I->waitForElement('.nav', 30);
69 $I->waitForElement('.scaffold-content iframe', 30);
70 $I->seeCookie('be_lastLoginProvider');
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
80 // Verify default frontend is rendered
81 $I->amOnPage('/');
82 $I->waitForText('Deliver business value', 30);
83 $I->waitForText('100% free open source software');
84
85 // Verify link
86 $I->click('[title="Features"]');
87 $I->waitForText('rich core feature set out-of-the-box', 30);
88 }
89 }