File manager - Edit - /usr/local/prospamfilter/tests/_support/Step/Acceptance/MigrationSteps.php
Back
<?php namespace Step\Acceptance; use Codeception\Util\Locator; use Page\MigrationPage; class MigrationSteps extends CommonSteps { /** * Function used to verify plugin migration page layout */ public function verifyPageLayout() { // Page description $this->see(MigrationPage::TITLE, MigrationPage::TITLE_XPATH); $this->waitForText(MigrationPage::DESCRIPTION_A); $this->waitForText(MigrationPage::DESCRIPTION_B); // Current username $this->see('Current username'); // Fields $this->waitForElement(Locator::combine(MigrationPage::CURRENT_USERNAME_XPATH, MigrationPage::CURRENT_USERNAME_CSS), 30); // New username $this->see('New username'); $this->waitForElement(Locator::combine(MigrationPage::NEW_USERNAME_XPATH, MigrationPage::NEW_USERNAME_CSS), 30); // New password $this->see('New password'); $this->waitForElement(Locator::combine(MigrationPage::NEW_PASSWORD_XPATH, MigrationPage::NEW_PASSWORD_CSS), 30); $this->waitForText('I am sure I want to migrate all protected domains on this server to this new user.'); // Confirmation radio button $this->waitForElement(Locator::combine(MigrationPage::CONFIRM_INPUT_XPATH, MigrationPage::CONFIRM_INPUT_CSS), 30); // Migrate' button $this->waitForElement(Locator::combine(MigrationPage::MIGRATE_BTN_XPATH, MigrationPage::MIGRATE_BTN_CSS), 30); } /** * Function used to submit migration form */ public function submitMigrationForm() { // Submit migration $this->click(Locator::combine(MigrationPage::MIGRATE_BTN_XPATH,MigrationPage::MIGRATE_BTN_CSS)); } /** * Function used to check migration error message */ public function seeErrorAfterMigrate() { //Verify error message $this->see('One or more settings are not correctly set.'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings