mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
Changed assertions
This commit is contained in:
@ -22,10 +22,11 @@ $I->see('Incorrect username or password.', '.help-block');
|
|||||||
$I->amGoingTo('try to login with correct credentials');
|
$I->amGoingTo('try to login with correct credentials');
|
||||||
$loginPage->login('erau', 'password_0');
|
$loginPage->login('erau', 'password_0');
|
||||||
$I->expectTo('see that user is logged');
|
$I->expectTo('see that user is logged');
|
||||||
$I->see('Logout (erau)', 'ul.nav li a');
|
$I->seeLink('Logout (erau)');
|
||||||
$I->dontSee('Login', 'ul.nav li a');
|
$I->dontSeeLink('Login');
|
||||||
$I->dontSee('Signup', 'ul.nav li a');
|
$I->dontSeeLink('Signup');
|
||||||
// Uncomment if using WebDriver
|
/** Uncomment if using WebDriver
|
||||||
//$I->click('Logout (erau)', 'ul.nav li a');
|
* $I->click('Logout (erau)');
|
||||||
//$I->dontSee('Logout (erau)', 'ul.nav li a');
|
* $I->dontSeeLink('Logout (erau)');
|
||||||
//$I->see('Login', 'ul.nav li a');
|
* $I->seeLink('Login');
|
||||||
|
*/
|
||||||
|
@ -22,6 +22,6 @@ $I->see('Incorrect username or password.', '.help-block');
|
|||||||
$I->amGoingTo('try to login with correct credentials');
|
$I->amGoingTo('try to login with correct credentials');
|
||||||
$loginPage->login('erau', 'password_0');
|
$loginPage->login('erau', 'password_0');
|
||||||
$I->expectTo('see that user is logged');
|
$I->expectTo('see that user is logged');
|
||||||
$I->see('Logout (erau)', 'ul.nav li a');
|
$I->seeLink('Logout (erau)');
|
||||||
$I->dontSee('Login', 'ul.nav li a');
|
$I->dontSeeLink('Login');
|
||||||
$I->dontSee('Signup', 'ul.nav li a');
|
$I->dontSeeLink('Signup');
|
||||||
|
@ -22,10 +22,11 @@ $I->see('Incorrect username or password.', '.help-block');
|
|||||||
$I->amGoingTo('try to login with correct credentials');
|
$I->amGoingTo('try to login with correct credentials');
|
||||||
$loginPage->login('erau', 'password_0');
|
$loginPage->login('erau', 'password_0');
|
||||||
$I->expectTo('see that user is logged');
|
$I->expectTo('see that user is logged');
|
||||||
$I->see('Logout (erau)', 'ul.nav li a');
|
$I->seeLink('Logout (erau)');
|
||||||
$I->dontSee('Login', 'ul.nav li a');
|
$I->dontSeeLink('Login');
|
||||||
$I->dontSee('Signup', 'ul.nav li a');
|
$I->dontSeeLink('Signup');
|
||||||
// Uncomment if using WebDriver
|
/** Uncomment if using WebDriver
|
||||||
//$I->click('Logout (erau)', 'ul.nav li a');
|
* $I->click('Logout (erau)');
|
||||||
//$I->dontSee('Logout (erau)', 'ul.nav li a');
|
* $I->dontSeeLink('Logout (erau)');
|
||||||
//$I->see('Login', 'ul.nav li a');
|
* $I->seeLink('Login');
|
||||||
|
*/
|
||||||
|
@ -77,6 +77,6 @@ class SignupCest
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$I->expectTo('see that user logged in');
|
$I->expectTo('see that user logged in');
|
||||||
$I->see('Logout (tester)', 'ul.nav li a');
|
$I->seeLink('Logout (tester)');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,6 @@ $I->see('Incorrect username or password.', '.help-block');
|
|||||||
$I->amGoingTo('try to login with correct credentials');
|
$I->amGoingTo('try to login with correct credentials');
|
||||||
$loginPage->login('erau', 'password_0');
|
$loginPage->login('erau', 'password_0');
|
||||||
$I->expectTo('see that user is logged');
|
$I->expectTo('see that user is logged');
|
||||||
$I->see('Logout (erau)', 'ul.nav li a');
|
$I->seeLink('Logout (erau)');
|
||||||
$I->dontSee('Login', 'ul.nav li a');
|
$I->dontSeeLink('Login');
|
||||||
$I->dontSee('Signup', 'ul.nav li a');
|
$I->dontSeeLink('Signup');
|
||||||
|
@ -85,6 +85,6 @@ class SignupCest
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$I->expectTo('see that user logged in');
|
$I->expectTo('see that user logged in');
|
||||||
$I->see('Logout (tester)', 'ul.nav li a');
|
$I->seeLink('Logout (tester)');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user