BlankPageCest.php 2.25 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\Sqlite;

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

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

        // EnvironmentAndFolders step
        $I->waitForText('Installing TYPO3');
        $I->waitForText('No problems detected, continue with installation');
        $I->click('No problems detected, continue with installation');

        // DatabaseConnection step
42
        $I->waitForText('Select database', 30);
43
44
45
46
        $I->selectOption('#t3js-connect-database-driver', 'Manually configured SQLite connection');
        $I->click('Continue');

        // DatabaseData step
Benni Mack's avatar
Benni Mack committed
47
        $I->waitForText('Create Administrative User & Specify Site Name');
48
49
50
51
52
        $I->fillField('#username', 'admin');
        $I->fillField('#password', 'password');
        $I->click('Continue');

        // DefaultConfiguration step - load distributions
53
        $I->waitForText('Installation Complete', 60);
54
55
56
57
        $I->click('#create-site');
        $I->click('Open the TYPO3 Backend');

        // Verify backend login successful
58
        $I->waitForElement('#t3-username', 30);
59
60
61
        $I->fillField('#t3-username', 'admin');
        $I->fillField('#t3-password', 'password');
        $I->click('#t3-login-submit-section > button');
62
        $I->waitForElement('.modulemenu', 30);
63
64
65
66
67
68
69
70
        $I->waitForElement('.scaffold-content iframe', 30);
        $I->seeCookie('be_typo_user');

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