From bcf51a1156cb04b7c74756754addf360b8f24be8 Mon Sep 17 00:00:00 2001 From: Paul van Schayck Date: Fri, 4 Apr 2014 12:16:17 +0200 Subject: [PATCH] Add wait() to login test with wrong credentials to fix WebDriver test --- tests/acceptance/LoginCept.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/acceptance/LoginCept.php b/tests/acceptance/LoginCept.php index 07d1c45..c7c9ae3 100644 --- a/tests/acceptance/LoginCept.php +++ b/tests/acceptance/LoginCept.php @@ -17,6 +17,9 @@ $I->see('Password cannot be blank.'); $I->amGoingTo('try to login with wrong credentials'); $loginPage->login('admin', 'wrong'); +if (method_exists($I, 'wait')) { + $I->wait(3); // only for selenium +} $I->expectTo('see validations errors'); $I->see('Incorrect username or password.');