Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
phundament
app
Commits
0cf98f5a
Commit
0cf98f5a
authored
Dec 29, 2015
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed tests
parent
dbd56c04
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
4 deletions
+26
-4
AccessCept.php
tests/codeception/acceptance/prod/app/AccessCept.php
+4
-4
LogoutFrontendCept.php
tests/codeception/acceptance/prod/app/LogoutFrontendCept.php
+22
-0
No files found.
tests/codeception/acceptance/prod/app/AccessCept.php
View file @
0cf98f5a
...
@@ -7,9 +7,9 @@ $I->wantTo('ensure backend access works');
...
@@ -7,9 +7,9 @@ $I->wantTo('ensure backend access works');
$I
->
amOnPage
(
'/backend'
);
$I
->
amOnPage
(
'/backend'
);
$I
->
dontSeeElement
(
'.small-box'
);
$I
->
dontSeeElement
(
'.small-box'
);
$I
->
amOnPage
(
'/
cms
/html'
);
$I
->
amOnPage
(
'/
prototype
/html'
);
$I
->
dontSee
(
'Htmls'
,
'h1'
);
$I
->
dontSee
(
'Htmls'
,
'h1'
);
$I
->
amOnPage
(
'/
cms
/less'
);
$I
->
amOnPage
(
'/
prototype
/less'
);
$I
->
dontSee
(
'Lesses'
,
'h1'
);
$I
->
dontSee
(
'Lesses'
,
'h1'
);
$loginPage
=
LoginPage
::
openBy
(
$I
);
$loginPage
=
LoginPage
::
openBy
(
$I
);
...
@@ -17,7 +17,7 @@ $loginPage->login('admin', 'admin');
...
@@ -17,7 +17,7 @@ $loginPage->login('admin', 'admin');
$I
->
amOnPage
(
'/backend'
);
$I
->
amOnPage
(
'/backend'
);
$I
->
seeElement
(
'.small-box'
);
$I
->
seeElement
(
'.small-box'
);
$I
->
amOnPage
(
'/
cms
/html'
);
$I
->
amOnPage
(
'/
prototype
/html'
);
$I
->
see
(
'Htmls'
,
'h1'
);
$I
->
see
(
'Htmls'
,
'h1'
);
$I
->
amOnPage
(
'/
cms
/less'
);
$I
->
amOnPage
(
'/
prototype
/less'
);
$I
->
see
(
'Lesses'
,
'h1'
);
$I
->
see
(
'Lesses'
,
'h1'
);
tests/codeception/acceptance/prod/app/LogoutFrontendCept.php
0 → 100755
View file @
0cf98f5a
<?php
use
tests\codeception\_pages\LoginPage
;
$I
=
new
AcceptanceTester
(
$scenario
);
$I
->
wantTo
(
'ensure that logout from frontend works'
);
$loginPage
=
LoginPage
::
openBy
(
$I
);
$I
->
see
(
'Sign in'
,
'h3'
);
$I
->
amGoingTo
(
'try to login with correct credentials'
);
$loginPage
->
login
(
'admin'
,
'admin'
);
$I
->
makeScreenshot
(
'login-success'
);
$I
->
expectTo
(
'see user info'
);
$I
->
click
(
'.nav #link-user-menu a'
);
$I
->
amOnPage
(
'/'
);
$I
->
click
(
'.dropdown-toggle'
,
'.link-user-menu'
);
$I
->
click
(
'#link-logout'
);
$I
->
dontSee
(
'admin'
);
\ No newline at end of file
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