Fixed: functional & acceptance tests on login page

This commit is contained in:
Lucas Bartholemy 2016-02-12 12:38:59 +01:00
parent 5a8655e3e2
commit d6c1246738
2 changed files with 4 additions and 4 deletions

View File

@ -17,8 +17,8 @@ if (method_exists($I, 'wait')) {
$I->wait(3); // only for selenium
}
$I->expectTo('see validations errors');
$I->see('Username cannot be blank.');
$I->see('Password cannot be blank.');
$I->see('username or email cannot be blank.');
$I->see('password cannot be blank.');
$I->amGoingTo('try to login with wrong credentials');
$loginPage->login('admin', 'wrong');

View File

@ -12,8 +12,8 @@ $loginPage = LoginPage::openBy($I);
$I->amGoingTo('try to login with empty credentials');
$loginPage->login('', '');
$I->expectTo('see validations errors');
$I->see('Username cannot be blank.');
$I->see('Password cannot be blank.');
$I->see('username or email cannot be blank.');
$I->see('password cannot be blank.');
$I->amGoingTo('try to login with wrong credentials');
$loginPage->login('admin', 'wrong');