Commit 109ba6f6 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Remove bootstrap_package related ac tests

The bootstrap_package related installer acceptance
tests are disabled for quite some while already
since that package does not keep up with current
core development.
It does not make sense to keep them anymore, so
we drop the according files.

Change-Id: I7ead6edde604c74f784d143b3ec44e46e18912e6
Resolves: #97594
Releases: main
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74581

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Tested-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 52359b5c
<?php
declare(strict_types=1);
/*
* 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!
*/
namespace TYPO3\CMS\Core\Tests\Acceptance\Install;
use TYPO3\CMS\Core\Tests\Acceptance\Support\InstallTester;
class AbstractIntroductionPackage
{
/**
* @param InstallTester $I
*/
protected function manipulateSiteConfigurationOnlyForTesting(InstallTester $I): void
{
$acceptanceUrl = $I->grabModuleConfig('WebDriver', 'url');
$acceptanceUrlWithTrailingSlash = rtrim($acceptanceUrl, '/') . '/';
$acceptanceHost = $this->getHostWithPortFromUrl($acceptanceUrl);
$trustedHostsPatternConfig = '<?php' . PHP_EOL
. '$GLOBALS[\'TYPO3_CONF_VARS\'][\'SYS\'][\'trustedHostsPattern\'] = \'' . $acceptanceHost . '\';';
$I->writeToFile('typo3conf/AdditionalConfiguration.php', $trustedHostsPatternConfig);
$configFile = __DIR__ . '/../../../../../../typo3temp/var/tests/acceptance/typo3conf/sites/introduction/config.yaml';
$config = file($configFile);
if (str_contains($config[0], 'base: /')) {
$I->amGoingTo('manipulate base in sites config');
$config[0] = 'base: ' . $acceptanceUrlWithTrailingSlash . PHP_EOL;
file_put_contents($configFile, $config);
}
$I->amOnPage('/typo3');
$I->click('Maintenance');
$I->switchToContentFrame();
try {
// fill in sudo mode password
$I->see('Confirm with user password');
$I->fillField('confirmationPassword', 'password');
$I->click('Confirm');
$I->wait(10);
// wait for Maintenance headline being available
$I->waitForText('Maintenance');
$I->canSee('Maintenance', 'h1');
} catch (\Exception $e) {
// nothing...
}
$I->click('Flush cache');
}
/**
* @param string $url
* @return string Host with port
*/
protected function getHostWithPortFromUrl(string $url): string
{
$urlParts = parse_url($url);
return $urlParts['host'] . (isset($urlParts['port']) ? ':' . $urlParts['port'] : '');
}
}
<?php
declare(strict_types=1);
/*
* 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!
*/
namespace TYPO3\CMS\Core\Tests\Acceptance\Install\Mysql;
use Codeception\Scenario;
use TYPO3\CMS\Core\Tests\Acceptance\Install\AbstractIntroductionPackage;
use TYPO3\CMS\Core\Tests\Acceptance\Support\InstallTester;
/**
* Click through installer, go to backend, check blank site in FE works
*/
class IntroductionPackageCest extends AbstractIntroductionPackage
{
/**
* @env mysql
* @param InstallTester $I
* @param Scenario $scenario
* @skip
*/
public function installTypo3OnMysql(InstallTester $I, Scenario $scenario): void
{
// 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
$I->waitForText('Select database', 30);
$I->fillField('#t3-install-step-mysqliManualConfiguration-username', $scenario->current('typo3InstallMysqlDatabaseUsername'));
$I->fillField('#t3-install-step-mysqliManualConfiguration-password', $scenario->current('typo3InstallMysqlDatabasePassword'));
$I->fillField('#t3-install-step-mysqliManualConfiguration-host', $scenario->current('typo3InstallMysqlDatabaseHost'));
$I->click('Continue');
// DatabaseSelect step
$I->waitForText('Select a database', 30);
$I->click('#t3-install-form-db-select-type-new');
$I->fillField('#t3-install-step-database-new', $scenario->current('typo3InstallMysqlDatabaseName'));
$I->click('Continue');
// DatabaseData step
$I->waitForText('Create Administrative User / Specify Site Name');
$I->fillField('#username', 'admin');
$I->fillField('#password', 'password');
$I->click('Continue');
// DefaultConfiguration step - Create empty page
$I->waitForText('Installation Complete', 60);
$I->click('#load-distributions');
$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');
$I->waitForElement('.modulemenu', 30);
$I->waitForElement('.scaffold-content iframe', 30);
$I->seeCookie('be_typo_user');
// Loading might take some time
$I->wait(10);
$I->switchToIFrame('list_frame');
$I->waitForText('Get preconfigured distribution', 30);
$I->click('.t3-button-action-installdistribution');
$I->waitForText('You successfully installed the distribution \'introduction\'', 240);
$this->manipulateSiteConfigurationOnlyForTesting($I);
// Verify default frontend is rendered
$I->amOnPage('/');
$I->waitForText('Deliver business value', 60);
$I->waitForText('100% free open source software');
// Verify link
$I->click('[title="Features"]');
$I->waitForText('rich core feature set out-of-the-box', 30);
}
}
<?php
declare(strict_types=1);
/*
* 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!
*/
namespace TYPO3\CMS\Core\Tests\Acceptance\Install\Postgresql;
use Codeception\Scenario;
use TYPO3\CMS\Core\Tests\Acceptance\Install\AbstractIntroductionPackage;
use TYPO3\CMS\Core\Tests\Acceptance\Support\InstallTester;
/**
* Click through installer, go to backend, install introduction package
*/
class IntroductionPackageCest extends AbstractIntroductionPackage
{
/**
* @param InstallTester $I
* @param Scenario $scenario
* @env postgresql
* @skip
*/
public function installTypo3OnPgSql(InstallTester $I, Scenario $scenario): void
{
// 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
$I->waitForText('Select database');
$I->selectOption('#t3js-connect-database-driver', 'Manually configured PostgreSQL connection');
$I->fillField('#t3-install-step-postgresManualConfiguration-username', $scenario->current('typo3InstallPostgresqlDatabaseUsername'));
$I->fillField('#t3-install-step-postgresManualConfiguration-password', $scenario->current('typo3InstallPostgresqlDatabasePassword'));
$I->fillField('#t3-install-step-postgresManualConfiguration-database', $scenario->current('typo3InstallPostgresqlDatabaseName'));
$I->fillField('#t3-install-step-postgresManualConfiguration-host', $scenario->current('typo3InstallPostgresqlDatabaseHost'));
$I->click('Continue');
// DatabaseData step
$I->waitForText('Create Administrative User / Specify Site Name');
$I->fillField('#username', 'admin');
$I->fillField('#password', 'password');
$I->click('Continue');
// DefaultConfiguration step - load distributions
$I->waitForText('Installation Complete', 60);
$I->click('#load-distributions');
$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');
$I->waitForElement('.modulemenu', 30);
$I->waitForElement('.scaffold-content iframe', 30);
$I->seeCookie('be_typo_user');
// Loading might take some time
$I->wait(10);
$I->switchToIFrame('list_frame');
$I->waitForText('Get preconfigured distribution', 30);
$I->click('.t3-button-action-installdistribution');
$I->waitForText('You successfully installed the distribution \'introduction\'', 240);
$this->manipulateSiteConfigurationOnlyForTesting($I);
// Verify default frontend is rendered
$I->amOnPage('/');
$I->waitForText('Deliver business value', 60);
$I->waitForText('100% free open source software');
// Verify link
$I->click('[title="Features"]');
$I->waitForText('rich core feature set out-of-the-box', 30);
}
}
<?php
declare(strict_types=1);
/*
* 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!
*/
namespace TYPO3\CMS\Core\Tests\Acceptance\Install\Sqlite;
use Codeception\Scenario;
use TYPO3\CMS\Core\Tests\Acceptance\Install\AbstractIntroductionPackage;
use TYPO3\CMS\Core\Tests\Acceptance\Support\InstallTester;
/**
* Click through installer, go to backend, install introduction package
*/
class IntroductionPackageCest extends AbstractIntroductionPackage
{
/**
* @param InstallTester $I
* @param Scenario $scenario
* @env sqlite
* @skip
*/
public function installTypo3OnSqlite(InstallTester $I, Scenario $scenario): void
{
// 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
$I->waitForText('Select database');
$I->selectOption('#t3js-connect-database-driver', 'Manually configured SQLite connection');
$I->click('Continue');
// DatabaseData step
$I->waitForText('Create Administrative User / Specify Site Name');
$I->fillField('#username', 'admin');
$I->fillField('#password', 'password');
$I->click('Continue');
// DefaultConfiguration step - load distributions
$I->waitForText('Installation Complete', 60);
$I->click('#load-distributions');
$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');
$I->waitForElement('.modulemenu', 30);
$I->waitForElement('.scaffold-content iframe', 30);
$I->seeCookie('be_typo_user');
// Loading might take some time
$I->wait(10);
$I->switchToIFrame('list_frame');
$I->waitForText('Get preconfigured distribution', 30);
$I->click('.t3-button-action-installdistribution');
$I->waitForText('You successfully installed the distribution \'introduction\'', 240);
$this->manipulateSiteConfigurationOnlyForTesting($I);
// Verify default frontend is rendered
$I->amOnPage('/');
$I->waitForText('Deliver business value', 60);
$I->waitForText('100% free open source software');
// Verify link
$I->click('[title="Features"]');
$I->waitForText('rich core feature set out-of-the-box', 30);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment