Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
open-source
MetaGer
Commits
23a68595
Commit
23a68595
authored
May 03, 2019
by
Dominik Hebeler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testing ci
parent
17d025ea
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
.gitlab-ci.yml
.gitlab-ci.yml
+3
-0
test.sh
test.sh
+1
-4
tests/Feature/StaticPagesTest.php
tests/Feature/StaticPagesTest.php
+2
-2
No files found.
.gitlab-ci.yml
View file @
23a68595
...
@@ -55,6 +55,9 @@ test metager3:
...
@@ -55,6 +55,9 @@ test metager3:
script
:
script
:
-
cd ~/MetaGer_neu
-
cd ~/MetaGer_neu
-
sh test.sh
-
sh test.sh
after_script
:
-
kill $browserstackPid
-
kill $servePid
deploy metager3
:
deploy metager3
:
stage
:
deploy
stage
:
deploy
...
...
test.sh
View file @
23a68595
...
@@ -13,7 +13,4 @@ servePid=$!
...
@@ -13,7 +13,4 @@ servePid=$!
browserstackPid
=
$!
browserstackPid
=
$!
sleep
5
sleep
5
./vendor/bin/phpunit
./vendor/bin/phpunit
\ No newline at end of file
kill
$browserstackPid
kill
$servePid
\ No newline at end of file
tests/Feature/StaticPagesTest.php
View file @
23a68595
...
@@ -41,7 +41,7 @@ class StaticPagesTest extends TestCase
...
@@ -41,7 +41,7 @@ class StaticPagesTest extends TestCase
private
function
startPageTest
()
private
function
startPageTest
()
{
{
$this
->
webdriver
->
get
(
"http://localhost"
);
$this
->
webdriver
->
get
(
$mgServer
);
# Test for Page Title
# Test for Page Title
$this
->
assertEquals
(
$this
->
webdriver
->
getTitle
(),
"MetaGer - Mehr als eine Suchmaschine"
);
$this
->
assertEquals
(
$this
->
webdriver
->
getTitle
(),
"MetaGer - Mehr als eine Suchmaschine"
);
...
@@ -57,7 +57,7 @@ class StaticPagesTest extends TestCase
...
@@ -57,7 +57,7 @@ class StaticPagesTest extends TestCase
*/
*/
private
function
navigationMenuTest
()
private
function
navigationMenuTest
()
{
{
$this
->
webdriver
->
get
(
"http://localhost"
);
$this
->
webdriver
->
get
(
$mgServer
);
// Check if the Navigation menu expands on click
// Check if the Navigation menu expands on click
$sidebarToggle
=
$this
->
webdriver
->
findElement
(
WebDriverBy
::
cssSelector
(
"label[for=sidebarToggle]"
));
$sidebarToggle
=
$this
->
webdriver
->
findElement
(
WebDriverBy
::
cssSelector
(
"label[for=sidebarToggle]"
));
...
...
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