Add wait() to login test with wrong credentials to fix WebDriver test

This commit is contained in:
Paul van Schayck 2014-04-04 12:16:17 +02:00
parent 923744d333
commit bcf51a1156

View File

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