mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2026-07-27 22:51:51 +08:00
Merge commit 'de4bf25cb3' into release/8.4.0-beta
# Conflicts:
# public/legacy/data/SugarBean.php
# public/legacy/include/Smarty/plugins/function.sugarvar.php
# public/legacy/include/SugarDateTime.php
# public/legacy/include/database/MysqliManager.php
# public/legacy/modules/Alerts/metadata/listviewdefs.php
# public/legacy/modules/SugarFeed/Dashlets/SugarFeedDashlet/SugarFeedDashlet.php
# public/legacy/modules/Trackers/metadata/SearchFields.php
# public/legacy/modules/Trackers/metadata/listviewdefs.php
# public/legacy/modules/UpgradeWizard/SugarMerge/EditViewMerge.php
# public/legacy/suitecrm_version.php
61 lines
1.9 KiB
PHP
Executable file
61 lines
1.9 KiB
PHP
Executable file
<?php
|
|
/**
|
|
* Class UserWizardCest
|
|
* As an administrative user, I want to use the install wizard (web based) to install SuiteCRM.
|
|
*/
|
|
#[\AllowDynamicProperties]
|
|
class UserWizardCest
|
|
{
|
|
|
|
/**
|
|
* @param InstallTester $I
|
|
*/
|
|
public function _before(InstallTester $I)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param InstallTester $I
|
|
*/
|
|
public function _after(InstallTester $I)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param \Helper\WebDriverHelper $webDriverHelper
|
|
* Dependency injection
|
|
*/
|
|
protected function _inject(\Helper\WebDriverHelper $webDriverHelper)
|
|
{
|
|
$this->webDriverHelper = $webDriverHelper;
|
|
}
|
|
|
|
// tests
|
|
/**
|
|
* @param InstallTester $I
|
|
* @param \Helper\WebDriverHelper $webDriverHelper
|
|
*
|
|
* As an administrative user, I want to use the install wizard (web based) to install SuiteCRM.
|
|
* Given that that I install SuiteCRM with the default configuration settings I
|
|
* Expect to be able to login as an administrator.
|
|
*/
|
|
public function testScenarioInstallSuiteCRMWithDefaultConfiguration(InstallTester $I, Step\Acceptance\EmailManTester $I2, \Helper\WebDriverHelper $webDriverHelper)
|
|
{
|
|
$I->wantTo('check the php version meets the recommended requirements.');
|
|
$I->amOnUrl($webDriverHelper->getInstanceURL());
|
|
$I->waitForText('Setup');
|
|
$I->maySeeOldVersionDetected();
|
|
$I->acceptLicense();
|
|
$I->seeValidSystemEnvironment();
|
|
$I->configureInstaller($webDriverHelper);
|
|
$I->waitForInstallerToFinish();
|
|
|
|
// ---------- Email Settings ---------------
|
|
|
|
$I2->wantTo('Save an outgoing email configuration');
|
|
// Navigate to email configuration and save settings
|
|
$I2->loginAsAdmin();
|
|
$I2->createEmailSettings();
|
|
$I2->dontSee('Note: To send record assignment notifications, an SMTP server must be configured in Email Settings.');
|
|
}
|
|
}
|