Просмотр исходного кода

Merge pull request #2977 from PaulVanSchayck/fix-webdriver-test

Add wait() to login test with wrong credentials to fix WebDriver test
Alexander Makarov 12 лет назад
Родитель
Сommit
5e2d934270
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      tests/acceptance/LoginCept.php

+ 3 - 0
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.');