Commit 16092a58 authored by Rafael's avatar Rafael

Fixes tests.

parent fe811fc5
Pipeline #150250724 canceled with stages
in 5 seconds
......@@ -36,10 +36,11 @@ class AcceptanceTester extends Codeception\Actor
$I = $this;
$I->amOnPage('/');
$I->executeJS('window.localStorage.clear();');
$I->click('#login');
$I->waitForElement('#login-email');
$I->fillField('#login-email', $email);
$I->fillField('#login-password', $password);
$I->click('#topbar .btn');
$I->click('#topbar .login-btn');
$I->waitForActiveAPICalls();
$I->waitForElementNotVisible('#pulse-success');
$I->waitForPageBody();
......
......@@ -8,10 +8,11 @@ $foodsaver = $I->createFoodsharer($pass);
$I->wantTo('ensure you can login');
$I->amOnPage('/');
$I->click('#login');
$I->waitForElement('#login-email');
$I->fillField('#login-email', $foodsaver['email']);
$I->fillField('#login-password', $pass);
$I->click('#topbar .btn');
$I->click('#topbar .login-btn');
$I->waitForActiveAPICalls();
$I->waitForElementNotVisible('#pulse-success');
$I->waitForPageBody();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment