Travis test fixes.

This commit is contained in:
buddh4 2017-03-26 17:18:03 +02:00
parent 83aa1ae09a
commit 13a5cd5368
3 changed files with 12 additions and 11 deletions

View File

@ -12,6 +12,7 @@ class PasswordRecoveryCest
$I->amGoingTo('request a recovery mail for an invalid user email and wrong captcha'); $I->amGoingTo('request a recovery mail for an invalid user email and wrong captcha');
LoginPage::openBy($I); LoginPage::openBy($I);
$I->wait(3);
$I->waitForText('Create a new one.'); $I->waitForText('Create a new one.');
$I->jsClick('#password-recovery-link'); $I->jsClick('#password-recovery-link');
$I->waitForText('Password recovery'); $I->waitForText('Password recovery');

View File

@ -8,7 +8,7 @@ use Codeception\Specify;
use humhub\modules\user\models\User; use humhub\modules\user\models\User;
use humhub\modules\user\models\Follow; use humhub\modules\user\models\Follow;
class FollowTest extends HumHubDbTestCase class ApprovalTest extends HumHubDbTestCase
{ {
use Specify; use Specify;

View File

@ -204,7 +204,7 @@ class AcceptanceTester extends \Codeception\Actor
*/ */
public function selectUserFromPicker($selector, $userName) public function selectUserFromPicker($selector, $userName)
{ {
$select2Input = $selector.' ~ span input'; $select2Input = $selector . ' ~ span input';
$this->fillField($select2Input, $userName); $this->fillField($select2Input, $userName);
$this->waitForElementVisible('.select2-container--open'); $this->waitForElementVisible('.select2-container--open');
$this->wait(5); $this->wait(5);
@ -228,7 +228,7 @@ class AcceptanceTester extends \Codeception\Actor
public function jsClick($selector) public function jsClick($selector)
{ {
$this->executeJS("$('". $selector ."').click();"); $this->executeJS("$('" . $selector . "')[0].click();");
} }
public function jsFillField($selector, $value) public function jsFillField($selector, $value)