1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Working on tests

This commit is contained in:
Hillel Coren 2018-03-08 08:31:49 +02:00
parent 8ba4715a82
commit 44800d985e

View File

@ -26,18 +26,15 @@ class AcceptanceTester extends \Codeception\Actor
*/
function checkIfLogin(\AcceptanceTester $I)
{
//if ($I->loadSessionSnapshot('login')) return;
$I->amOnPage('/login?lang=en');
if ($I->seePageHasElement('Login')) {
try {
$I->amOnPage('/login?lang=en');
$I->see('Login');
$I->fillField(['name' => 'email'], Fixtures::get('username'));
$I->fillField(['name' => 'password'], Fixtures::get('password'));
$I->click('Login');
} catch (Exception $e) {
// do nothing
}
//$I->saveSessionSnapshot('login');
}
function selectDataPicker(\AcceptanceTester $I, $element, $date = 'now')