コード例 #1
0
<?php

$I = new AcceptanceTester\AccountSteps($scenario);
$I->wantTo('log in using an existing account and see the result');
$I->amOnPage(\LoginPage::$URL);
$I->login('demo', 'demo1234');
$I->dontSee('Incorrect username or password.');
コード例 #2
0
<?php

$I = new AcceptanceTester\AccountSteps($scenario);
$I->wantTo('reset my password, log in and see the result');
$I->amOnPage(\LoginPage::$URL);
$I->click('#forgotpassword-link');
$I->forgotPassword('*****@*****.**');
$I->see('You have requested to reset your password');
$I->click('a');
$I->see('Reset password', 'h1');
$I->resetPassword('demo4321');
$I->see('Login', 'h1');
$I->login('demo', 'demo4321');
$I->dontSee('Incorrect username or password.');
コード例 #3
0
<?php

$I = new \AcceptanceTester\AccountSteps($scenario);
$I->wantTo('sign-up and see the result');
$I->amOnPage(\LoginPage::$URL);
$I->click('#signup-link');
$I->signup(['email' => '*****@*****.**', 'username' => 'demo', 'password' => 'demo1234', 'verifyPassword' => 'demo1234']);
$I->see('Thank you for signing up');
$I->click('a');
$I->see('Login', 'h1');