2016-03-25 01:18:05 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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)
|
2021-06-10 13:15:52 -07:00
|
|
|
*/
|
2016-03-25 01:18:05 -07:00
|
|
|
class AcceptanceTester extends \Codeception\Actor
|
|
|
|
{
|
|
|
|
use _generated\AcceptanceTesterActions;
|
|
|
|
|
2021-06-10 13:15:52 -07:00
|
|
|
/**
|
|
|
|
* Define custom actions here
|
|
|
|
*/
|
2016-03-25 01:18:05 -07:00
|
|
|
public static function test_login($I)
|
|
|
|
{
|
2021-06-10 13:15:52 -07:00
|
|
|
// if snapshot exists - skipping login
|
|
|
|
//if ($I->loadSessionSnapshot('login')) return;
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2021-06-10 13:15:52 -07:00
|
|
|
// logging in
|
|
|
|
$I->amOnPage('/login');
|
|
|
|
$I->fillField('username', 'snipe');
|
|
|
|
$I->fillField('password', 'password');
|
|
|
|
$I->click('Login');
|
|
|
|
//$I->saveSessionSnapshot('login');
|
2016-03-25 01:18:05 -07:00
|
|
|
}
|
|
|
|
}
|