Bläddra i källkod

adjusted tests to run on php browser and selenium

Carsten Brandt 12 år sedan
förälder
incheckning
8eb088355b
2 ändrade filer med 6 tillägg och 2 borttagningar
  1. 3 1
      tests/acceptance/ContactCept.php
  2. 3 1
      tests/acceptance/LoginCept.php

+ 3 - 1
tests/acceptance/ContactCept.php

@@ -42,6 +42,8 @@ $contactPage->submit([
 	'body'			=>	'test content',
 	'verifyCode'	=>	'testme',
 ]);
-$I->wait(3);
+if (method_exists($I, 'wait')) {
+	$I->wait(3); // only for selenium
+}
 $I->dontSeeElement('#contact-form');
 $I->see('Thank you for contacting us. We will respond to you as soon as possible.');

+ 3 - 1
tests/acceptance/LoginCept.php

@@ -22,6 +22,8 @@ $I->see('Incorrect username or password.');
 
 $I->amGoingTo('try to login with correct credentials');
 $loginPage->login('admin', 'admin');
-$I->wait(3);
+if (method_exists($I, 'wait')) {
+	$I->wait(3); // only for selenium
+}
 $I->expectTo('see user info');
 $I->see('Logout (admin)');