This commit is contained in:
E.Alamo
2018-05-27 18:47:18 +02:00
parent 86f8da1bdf
commit 4b48406301
2 changed files with 13 additions and 8 deletions

View File

@ -141,11 +141,11 @@ class GdprCest
$I->amOnRoute('/user/settings/privacy');
$I->see('Export my data', 'h3');
$I->see('Delete my account', 'h3');
$I->click('Delete');
$I->fillField('#gdprdeleteform-password', 'wrongpassword');
$I->amOnRoute('/user/settings/gdprdelete');
$I->fillField('#gdprdeleteform-password','wrongpassword');
$I->click('Delete');
$I->see('Invalid password');
$I->fillField('#gdprdeleteform-password', 'qwerty');
$I->fillField('#gdprdeleteform-password','qwerty');
$I->click('Delete');
$I->see('Login');
}
@ -157,14 +157,14 @@ class GdprCest
*/
public function testPrivacyPageAccess(FunctionalTester $I)
{
$I->amGoingTo('Try that a user cant access to privacy if GDPR is not enabled');
$this->_prepareModule(false, false, false);
$this->_prepareModule(false, false,false);
$I->amLoggedInAs(1);
$I->amOnRoute('/user/settings/privacy');
$I->see('Not Found');
$I->amOnRoute('/user/settings/gdprdelete');
$I->see('Not Found');
$I->amOnRoute('/user/settings/export');
$I->amOnRoute('/user/settings/privacy');
$I->see('Not Found');$I->amOnRoute('/user/settings/privacy');
$I->see('Not Found');
}
}