Commit 23a68595 authored by Dominik Hebeler's avatar Dominik Hebeler

testing ci

parent 17d025ea
...@@ -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
......
...@@ -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
...@@ -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]"));
......
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