File manager - Edit - /usr/local/prospamfilter/tests/_support/Step/Acceptance/SupportSteps.php
Back
<?php namespace Step\Acceptance; use Page\SupportPage; use Codeception\Util\Locator; class SupportSteps extends CommonSteps { /** * Function used to verify support page layout */ public function verifyPageLayout() { // Look for page title $this->see(SupportPage::TITLE, SupportPage::TITLE_XPATH); // Look for page description $this->see(SupportPage::TEXT_A); $this->see(SupportPage::TEXT_B); $this->see(SupportPage::TEXT_C); $this->see(SupportPage::TEXT_D); $this->see(SupportPage::TEXT_E); $this->see(SupportPage::DESCRIPTION); // Look for run diagnostics button $this->seeElement(Locator::combine(SupportPage::RUN_DIAGNOSTICS_BTN_XPATH, SupportPage::RUN_DIAGNOSTICS_BTN_CSS)); } /** * Function used start the diagnostics operation */ public function submitDiagnosticForm() { // Click che run diagnostics button $this->click(Locator::combine(SupportPage::RUN_DIAGNOSTICS_BTN_XPATH, SupportPage::RUN_DIAGNOSTICS_BTN_CSS)); } /** * Function used to check the result of the diagnostics operation */ public function seeDiagnostics() { // Verify the diagnostics results $this->see("PHP version:", SupportPage::PHP_VERSION_XPATH); $this->seeElement(SupportPage::DIAGNOSTIC_RESULT_XPATH); $this->see("PHP extensions:", SupportPage::PHP_EXTENSIONS_XPATH); $this->seeElement(SupportPage::DIAGNOSTIC_RESULT_XPATH); $this->see("Configuration binary:", SupportPage::CONFIGURATION_BINARY_XPATH); $this->seeElement(SupportPage::DIAGNOSTIC_RESULT_XPATH); $this->see("Configuration permissions:", SupportPage::CONFIGURATION_PERMISSIONS_XPATH); $this->seeElement(SupportPage::DIAGNOSTIC_RESULT_XPATH); $this->see("Panel version:", SupportPage::PANEL_VERSION_XPATH); $this->seeElement(SupportPage::DIAGNOSTIC_RESULT_XPATH); $this->see("Addon version:", SupportPage::ADDON_VERSION_XPATH); $this->seeElement(SupportPage::DIAGNOSTIC_RESULT_XPATH); $this->see("Hashes:", SupportPage::HASHES_XPATH); $this->seeElement(SupportPage::DIAGNOSTIC_RESULT_XPATH); $this->see("Hooks:", SupportPage::HOOKS_XPATH); $this->seeElement(SupportPage::DIAGNOSTIC_RESULT_XPATH); $this->see("Symlinks:", SupportPage::SYMLINKS_XPATH); $this->seeElement(SupportPage::DIAGNOSTIC_RESULT_XPATH); $this->see("Controlpanel API:", SupportPage::CONTROLPANEL_API_XPATH); $this->seeElement(SupportPage::DIAGNOSTIC_RESULT_XPATH); $this->see("Spamfilter API:", SupportPage::SPAMFILTER_API_XPATH); $this->seeElement(SupportPage::DIAGNOSTIC_RESULT_XPATH); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings