Fixes #6624: Added delays to acceptance tests in order to make Selenium run more reliable

This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
Alexander Makarov
2014-12-26 23:18:52 +03:00
gitea-unlock(16/)
parent 7aae667e28
commit ae2f4cfe9b
octicon-diff(16/tw-mr-1) 4 changed files with 27 additions and 0 deletions

9
apps/advanced/tests/codeception/frontend/acceptance/ContactCept.php
View File

@@ -11,6 +11,9 @@ $I->see('Contact', 'h1');
$I->amGoingTo('submit contact form with no data');
$contactPage->submit([]);
if (method_exists($I, 'wait')) {
$I->wait(3); // only for selenium
}
$I->expectTo('see validations errors');
$I->see('Contact', 'h1');
$I->see('Name cannot be blank', '.help-block');
@@ -27,6 +30,9 @@ $contactPage->submit([
'body' => 'test content',
'verifyCode' => 'testme',
]);
if (method_exists($I, 'wait')) {
$I->wait(3); // only for selenium
}
$I->expectTo('see that email adress is wrong');
$I->dontSee('Name cannot be blank', '.help-block');
$I->see('Email is not a valid email address.', '.help-block');
@@ -42,4 +48,7 @@ $contactPage->submit([
'body' => 'test content',
'verifyCode' => 'testme',
]);
if (method_exists($I, 'wait')) {
$I->wait(3); // only for selenium
}
$I->see('Thank you for contacting us. We will respond to you as soon as possible.');