Created
November 23, 2017 22:16
-
-
Save Dinamiko/40590f6a0173be0aecaaafb9cc1808d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SettingsPageCest { | |
public function _before( AcceptanceTester $I ) { | |
$I->amOnPage( '/wp-login.php' ); | |
$I->wait( 1 ); | |
$I->fillField( [ 'name' => 'log' ], 'admin' ); | |
$I->fillField( [ 'name' => 'pwd' ], 'password' ); | |
$I->click( '#wp-submit' ); | |
} | |
public function general_settings_page( AcceptanceTester $I ) { | |
$I->amOnPage('/wp-admin/admin.php?page=backwpupsettings'); | |
$I->see('Display Settings', 'h3'); | |
$I->dontSeeCheckboxIsChecked('#showadminbarmenu'); | |
$I->dontSeeCheckboxIsChecked('#showfoldersize'); | |
$I->seeCheckboxIsChecked('#protectfolders'); | |
$I->checkOption('#showadminbarmenu'); | |
$I->checkOption('#showfoldersize'); | |
$I->uncheckOption('#protectfolders'); | |
$I->click('Save Changes'); | |
$I->seeCheckboxIsChecked('#showadminbarmenu'); | |
$I->seeCheckboxIsChecked('#showfoldersize'); | |
$I->dontSeeCheckboxIsChecked('#protectfolders'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment