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:
parent
8ba4715a82
commit
44800d985e
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user