Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
95e01899
Commit
95e01899
authored
Mar 07, 2014
by
Johnny Theill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed assertions
parent
70463d53
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
22 deletions
+24
-22
LoginCept.php
apps/advanced/backend/tests/acceptance/LoginCept.php
+8
-7
LoginCept.php
apps/advanced/backend/tests/functional/LoginCept.php
+3
-3
LoginCept.php
apps/advanced/frontend/tests/acceptance/LoginCept.php
+8
-7
SignupCest.php
apps/advanced/frontend/tests/acceptance/SignupCest.php
+1
-1
LoginCept.php
apps/advanced/frontend/tests/functional/LoginCept.php
+3
-3
SignupCest.php
apps/advanced/frontend/tests/functional/SignupCest.php
+1
-1
No files found.
apps/advanced/backend/tests/acceptance/LoginCept.php
View file @
95e01899
...
@@ -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');
*/
apps/advanced/backend/tests/functional/LoginCept.php
View file @
95e01899
...
@@ -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
->
see
Link
(
'Logout (erau)
'
);
$I
->
dontSee
(
'Login'
,
'ul.nav li a
'
);
$I
->
dontSee
Link
(
'Login
'
);
$I
->
dontSee
(
'Signup'
,
'ul.nav li a
'
);
$I
->
dontSee
Link
(
'Signup
'
);
apps/advanced/frontend/tests/acceptance/LoginCept.php
View file @
95e01899
...
@@ -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');
*/
apps/advanced/frontend/tests/acceptance/SignupCest.php
View file @
95e01899
...
@@ -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
->
see
Link
(
'Logout (tester)
'
);
}
}
}
}
apps/advanced/frontend/tests/functional/LoginCept.php
View file @
95e01899
...
@@ -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
->
see
Link
(
'Logout (erau)
'
);
$I
->
dontSee
(
'Login'
,
'ul.nav li a
'
);
$I
->
dontSee
Link
(
'Login
'
);
$I
->
dontSee
(
'Signup'
,
'ul.nav li a
'
);
$I
->
dontSee
Link
(
'Signup
'
);
apps/advanced/frontend/tests/functional/SignupCest.php
View file @
95e01899
...
@@ -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
->
see
Link
(
'Logout (tester)
'
);
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment