From 8eb088355b98e02e8e24c8e53b9d7fe359ad558e Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Tue, 17 Dec 2013 00:46:46 +0100 Subject: [PATCH] adjusted tests to run on php browser and selenium --- tests/acceptance/ContactCept.php | 4 +++- tests/acceptance/LoginCept.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/acceptance/ContactCept.php b/tests/acceptance/ContactCept.php index 514c625..107d12d 100644 --- a/tests/acceptance/ContactCept.php +++ b/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.'); diff --git a/tests/acceptance/LoginCept.php b/tests/acceptance/LoginCept.php index 00ba0de..b6ce5f9 100644 --- a/tests/acceptance/LoginCept.php +++ b/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)');