mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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)
|
function checkIfLogin(\AcceptanceTester $I)
|
||||||
{
|
{
|
||||||
//if ($I->loadSessionSnapshot('login')) return;
|
try {
|
||||||
|
$I->amOnPage('/login?lang=en');
|
||||||
$I->amOnPage('/login?lang=en');
|
|
||||||
|
|
||||||
if ($I->seePageHasElement('Login')) {
|
|
||||||
$I->see('Login');
|
$I->see('Login');
|
||||||
$I->fillField(['name' => 'email'], Fixtures::get('username'));
|
$I->fillField(['name' => 'email'], Fixtures::get('username'));
|
||||||
$I->fillField(['name' => 'password'], Fixtures::get('password'));
|
$I->fillField(['name' => 'password'], Fixtures::get('password'));
|
||||||
$I->click('Login');
|
$I->click('Login');
|
||||||
|
} catch (Exception $e) {
|
||||||
|
// do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
//$I->saveSessionSnapshot('login');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectDataPicker(\AcceptanceTester $I, $element, $date = 'now')
|
function selectDataPicker(\AcceptanceTester $I, $element, $date = 'now')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user