mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
38 lines
1017 B
PHP
38 lines
1017 B
PHP
<?php
|
|
|
|
use Codeception\Util\Fixtures;
|
|
|
|
/**
|
|
* Inherited Methods
|
|
* @method void wantToTest($text)
|
|
* @method void wantTo($text)
|
|
* @method void execute($callable)
|
|
* @method void expectTo($prediction)
|
|
* @method void expect($prediction)
|
|
* @method void amGoingTo($argumentation)
|
|
* @method void am($role)
|
|
* @method void lookForwardTo($achieveValue)
|
|
* @method void comment($description)
|
|
* @method \Codeception\Lib\Friend haveFriend($name, $actorClass = null)
|
|
*
|
|
* @SuppressWarnings(PHPMD)
|
|
*/
|
|
class FunctionalTester extends \Codeception\Actor
|
|
{
|
|
use _generated\FunctionalTesterActions;
|
|
|
|
/**
|
|
* Define custom actions here
|
|
*/
|
|
function checkIfLogin(\FunctionalTester $I)
|
|
{
|
|
//if ($I->loadSessionSnapshot('login')) return;
|
|
$I->amOnPage('/login');
|
|
$I->fillField(['name' => 'email'], Fixtures::get('username'));
|
|
$I->fillField(['name' => 'password'], Fixtures::get('password'));
|
|
$I->click('#loginButton');
|
|
|
|
//$I->saveSessionSnapshot('login');
|
|
}
|
|
}
|