From 5e78fe7f47fb99519f45038f793c366367b094ae 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 --- apps/basic/tests/acceptance/ContactCept.php | 4 +++- apps/basic/tests/acceptance/LoginCept.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/basic/tests/acceptance/ContactCept.php b/apps/basic/tests/acceptance/ContactCept.php index 514c625..107d12d 100644 --- a/apps/basic/tests/acceptance/ContactCept.php +++ b/apps/basic/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/apps/basic/tests/acceptance/LoginCept.php b/apps/basic/tests/acceptance/LoginCept.php index 00ba0de..b6ce5f9 100644 --- a/apps/basic/tests/acceptance/LoginCept.php +++ b/apps/basic/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)');