BlankPageCest.php 2.87 KB
Newer Older
1
<?php
2

3
declare(strict_types=1);
4
5
6
7
8
9
10
11
12
13
14
15
16
17

/*
 * This file is part of the TYPO3 CMS project.
 *
 * It is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License, either version 2
 * of the License, or any later version.
 *
 * For the full copyright and license information, please read the
 * LICENSE.txt file that was distributed with this source code.
 *
 * The TYPO3 project - inspiring people to share!
 */

18
19
namespace TYPO3\CMS\Core\Tests\Acceptance\Install\Postgresql;

Davert's avatar
Davert committed
20
21
22
use Codeception\Scenario;
use TYPO3\CMS\Core\Tests\Acceptance\Support\InstallTester;

23
/**
24
 * Click through installer, go to backend, check blank site in FE works
25
 */
Davert's avatar
Davert committed
26
class BlankPageCest
27
28
{
    /**
Davert's avatar
Davert committed
29
30
31
     * @param InstallTester $I
     * @param Scenario $scenario
     * @env postgresql
32
     */
Davert's avatar
Davert committed
33
    public function installTypo3OnPgSql(InstallTester $I, Scenario $scenario)
34
35
36
37
38
39
    {
        // Calling frontend redirects to installer
        $I->amOnPage('/');

        // EnvironmentAndFolders step
        $I->waitForText('Installing TYPO3');
Tom Warwick's avatar
Tom Warwick committed
40
41
        $I->waitForText('No problems detected, continue with installation');
        $I->click('No problems detected, continue with installation');
42
43

        // DatabaseConnection step
Tom Warwick's avatar
Tom Warwick committed
44
        $I->waitForText('Select database');
45
        $I->selectOption('#t3js-connect-database-driver', 'Manually configured PostgreSQL connection');
Davert's avatar
Davert committed
46
        $I->fillField('#t3-install-step-postgresManualConfiguration-username', $scenario->current('typo3InstallPostgresqlDatabaseUsername'));
47
        $I->fillField('#t3-install-step-postgresManualConfiguration-password', $scenario->current('typo3InstallPostgresqlDatabasePassword'));
Davert's avatar
Davert committed
48
        $I->fillField('#t3-install-step-postgresManualConfiguration-database', $scenario->current('typo3InstallPostgresqlDatabaseName'));
49
        $I->fillField('#t3-install-step-postgresManualConfiguration-host', $scenario->current('typo3InstallPostgresqlDatabaseHost'));
50
51
52
        $I->click('Continue');

        // DatabaseData step
Benni Mack's avatar
Benni Mack committed
53
        $I->waitForText('Create Administrative User & Specify Site Name');
54
55
56
57
58
        $I->fillField('#username', 'admin');
        $I->fillField('#password', 'password');
        $I->click('Continue');

        // DefaultConfiguration step - load distributions
59
        $I->waitForText('Installation Complete', 60);
60
        $I->click('#create-site');
61
62
63
64
65
66
67
        $I->click('Open the TYPO3 Backend');

        // Verify backend login successful
        $I->waitForElement('#t3-username');
        $I->fillField('#t3-username', 'admin');
        $I->fillField('#t3-password', 'password');
        $I->click('#t3-login-submit-section > button');
68
        $I->waitForElement('.modulemenu', 30);
69
70
71
72
73
        $I->waitForElement('.scaffold-content iframe', 30);
        $I->seeCookie('be_typo_user');

        // Verify default frontend is rendered
        $I->amOnPage('/');
74
        $I->waitForText('Welcome to a default website made with TYPO3');
75
76
    }
}