Commit 95e01899 by Johnny Theill

Changed assertions

parent 70463d53
...@@ -22,10 +22,11 @@ $I->see('Incorrect username or password.', '.help-block'); ...@@ -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'); ...@@ -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'); ...@@ -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 ...@@ -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'); ...@@ -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 ...@@ -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)');
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment