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
054e65fb
Commit
054e65fb
authored
Dec 29, 2015
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated tests & added tests target
parent
0cf98f5a
Pipeline
#6248
failed with stages
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
65 deletions
+8
-65
Makefile
Makefile
+5
-1
AboutCept.php
tests/codeception/acceptance/allow_fail/AboutCept.php
+0
-8
ContactCept.php
tests/codeception/acceptance/allow_fail/ContactCept.php
+0
-51
HomeCept.php
tests/codeception/acceptance/allow_fail/HomeCept.php
+3
-5
LogoutFrontendCept.php
.../codeception/acceptance/allow_fail/LogoutFrontendCept.php
+0
-0
No files found.
Makefile
View file @
054e65fb
...
...
@@ -20,7 +20,7 @@ else
DOCKER_HOST_IP
?=
127.0.0.1
endif
.PHONY
:
help default all open bash build setup clean update run-tests TEST STAGE
.PHONY
:
help default all open bash build setup clean update
tests clean-tests
run-tests TEST STAGE
default
:
help
...
...
@@ -58,6 +58,10 @@ clean: ##@docker remove application containers
$(DOCKER_COMPOSE)
kill
$(DOCKER_COMPOSE)
rm
-fv
tests
:
$(MAKE)
build
$(MAKE)
TEST setup up clean-tests run-tests
clean-tests
:
$(DOCKER_COMPOSE)
run
--rm
$(PHP_SERVICE)
sh
-c
'codecept clean'
...
...
tests/codeception/acceptance/allow_fail/AboutCept.php
deleted
100755 → 0
View file @
0cf98f5a
<?php
use
tests\codeception\_pages\AboutPage
;
$I
=
new
AcceptanceTester
(
$scenario
);
$I
->
wantTo
(
'ensure that about works'
);
AboutPage
::
openBy
(
$I
);
$I
->
see
(
'About'
,
'h1'
);
tests/codeception/acceptance/allow_fail/ContactCept.php
deleted
100755 → 0
View file @
0cf98f5a
<?php
use
tests\codeception\_pages\ContactPage
;
$I
=
new
AcceptanceTester
(
$scenario
);
$I
->
wantTo
(
'ensure that contact works'
);
$contactPage
=
ContactPage
::
openBy
(
$I
);
$I
->
see
(
'Contact'
,
'h1'
);
$I
->
amGoingTo
(
'submit contact form with no data'
);
$contactPage
->
submit
([]);
$I
->
expectTo
(
'see validations errors'
);
$I
->
wait
(
1
);
$I
->
see
(
'Contact'
,
'h1'
);
$I
->
see
(
'Name cannot be blank'
);
$I
->
see
(
'Email cannot be blank'
);
$I
->
see
(
'Subject cannot be blank'
);
$I
->
see
(
'Body cannot be blank'
);
$I
->
see
(
'The verification code is incorrect'
);
$I
->
amGoingTo
(
'submit contact form with not correct email'
);
$contactPage
->
submit
([
'name'
=>
'tester'
,
'email'
=>
'tester.email'
,
'subject'
=>
'test subject'
,
'body'
=>
'test content'
,
'verifyCode'
=>
'testme'
,
]);
$I
->
expectTo
(
'see that email adress is wrong'
);
$I
->
wait
(
1
);
$I
->
dontSee
(
'Name cannot be blank'
,
'.help-inline'
);
$I
->
see
(
'Email is not a valid email address.'
);
$I
->
dontSee
(
'Subject cannot be blank'
,
'.help-inline'
);
$I
->
dontSee
(
'Body cannot be blank'
,
'.help-inline'
);
$I
->
dontSee
(
'The verification code is incorrect'
,
'.help-inline'
);
$I
->
amGoingTo
(
'submit contact form with correct data'
);
$contactPage
->
submit
([
'name'
=>
'tester'
,
'email'
=>
'tester@example.com'
,
'subject'
=>
'test subject'
,
'body'
=>
'test content'
,
'verifyCode'
=>
'testme'
,
]);
$I
->
wait
(
3
);
$I
->
dontSeeElement
(
'#contact-form'
);
$I
->
see
(
'Thank you for contacting us. We will respond to you as soon as possible.'
);
tests/codeception/acceptance/allow_fail/HomeCept.php
View file @
054e65fb
...
...
@@ -2,10 +2,8 @@
$I
=
new
AcceptanceTester
(
$scenario
);
$I
->
wantTo
(
'ensure that home page
works
'
);
$I
->
wantTo
(
'ensure that home page
is not visible without login
'
);
$I
->
amOnPage
(
Yii
::
$app
->
homeUrl
);
$I
->
see
(
getenv
(
'APP_NAME'
));
$I
->
seeLink
(
'About'
);
$I
->
click
(
'About'
);
$I
->
see
(
'This is the About page.'
);
$I
->
dontSee
(
getenv
(
'APP_NAME'
));
$I
->
seeLink
(
'Login'
);
$I
->
makeScreenshot
(
'home'
);
tests/codeception/acceptance/
prod/app
/LogoutFrontendCept.php
→
tests/codeception/acceptance/
allow_fail
/LogoutFrontendCept.php
View file @
054e65fb
File moved
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