Commit 95e01899 by Johnny Theill

Changed assertions

parent 70463d53
......@@ -22,10 +22,11 @@ $I->see('Incorrect username or password.', '.help-block');
$I->amGoingTo('try to login with correct credentials');
$loginPage->login('erau', 'password_0');
$I->expectTo('see that user is logged');
$I->see('Logout (erau)', 'ul.nav li a');
$I->dontSee('Login', 'ul.nav li a');
$I->dontSee('Signup', 'ul.nav li a');
// Uncomment if using WebDriver
//$I->click('Logout (erau)', 'ul.nav li a');
//$I->dontSee('Logout (erau)', 'ul.nav li a');
//$I->see('Login', 'ul.nav li a');
$I->seeLink('Logout (erau)');
$I->dontSeeLink('Login');
$I->dontSeeLink('Signup');
/** Uncomment if using WebDriver
* $I->click('Logout (erau)');
* $I->dontSeeLink('Logout (erau)');
* $I->seeLink('Login');
*/
......@@ -22,6 +22,6 @@ $I->see('Incorrect username or password.', '.help-block');
$I->amGoingTo('try to login with correct credentials');
$loginPage->login('erau', 'password_0');
$I->expectTo('see that user is logged');
$I->see('Logout (erau)', 'ul.nav li a');
$I->dontSee('Login', 'ul.nav li a');
$I->dontSee('Signup', 'ul.nav li a');
$I->seeLink('Logout (erau)');
$I->dontSeeLink('Login');
$I->dontSeeLink('Signup');
......@@ -22,10 +22,11 @@ $I->see('Incorrect username or password.', '.help-block');
$I->amGoingTo('try to login with correct credentials');
$loginPage->login('erau', 'password_0');
$I->expectTo('see that user is logged');
$I->see('Logout (erau)', 'ul.nav li a');
$I->dontSee('Login', 'ul.nav li a');
$I->dontSee('Signup', 'ul.nav li a');
// Uncomment if using WebDriver
//$I->click('Logout (erau)', 'ul.nav li a');
//$I->dontSee('Logout (erau)', 'ul.nav li a');
//$I->see('Login', 'ul.nav li a');
$I->seeLink('Logout (erau)');
$I->dontSeeLink('Login');
$I->dontSeeLink('Signup');
/** Uncomment if using WebDriver
* $I->click('Logout (erau)');
* $I->dontSeeLink('Logout (erau)');
* $I->seeLink('Login');
*/
......@@ -77,6 +77,6 @@ class SignupCest
]);
$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');
$loginPage->login('erau', 'password_0');
$I->expectTo('see that user is logged');
$I->see('Logout (erau)', 'ul.nav li a');
$I->dontSee('Login', 'ul.nav li a');
$I->dontSee('Signup', 'ul.nav li a');
$I->seeLink('Logout (erau)');
$I->dontSeeLink('Login');
$I->dontSeeLink('Signup');
......@@ -85,6 +85,6 @@ class SignupCest
]);
$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