Changed assertions

This commit is contained in:
Johnny Theill
2014-03-07 21:26:01 +01:00
parent 70463d538c
commit 95e01899c7
6 changed files with 24 additions and 22 deletions

View File

@ -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');
*/

View File

@ -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');

View File

@ -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');
*/

View File

@ -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)');
} }
} }

View File

@ -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');

View File

@ -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)');
} }
} }