Commit 4270c5ec authored by Dominik Hebeler's avatar Dominik Hebeler

fixed websearch test

parent 216e1522
......@@ -47,8 +47,8 @@ class SitesearchWidget extends Page
->assertTitle("Sitesearch-Widget - MetaGer")
->visit($this->url())
->switchLanguage("Español")
->waitForText("Hier finden Sie ein Metager-Widget für Ihre Webseite.")
->assertTitle("Sitesearch-Widget - MetaGer")
->waitForText("Aquí encuentra el Metger-Widget para su sitio web")
->assertTitle("Widget para búsquedas dentro de tu página - MetaGer")
->type("site", "https://metager.de")
->press("Generar");
$location = "/es/sitesearch";
......@@ -56,8 +56,8 @@ class SitesearchWidget extends Page
$location = "/sitesearch";
}
$browser->waitForLocation($location)
->waitForText("Hier finden Sie ein Metager-Widget für Ihre Webseite.")
->assertTitle("Sitesearch-Widget - MetaGer")
->waitForText("Aquí encuentra el Metger-Widget para su sitio web")
->assertTitle("Widget para búsquedas dentro de tu página - MetaGer")
->visit($this->url())
->switchLanguage("Deutsch");
}
......
......@@ -13,7 +13,7 @@ class WebsearchWidget extends Page
*/
public function url()
{
return '/websearch';
return "/websearch/";
}
/**
......
......@@ -10,6 +10,7 @@ use Tests\Browser\Pages\Hilfe;
use Tests\Browser\Pages\HomePage;
use Tests\Browser\Pages\Impress;
use Tests\Browser\Pages\Kontakt;
use Tests\Browser\Pages\Plugin;
use Tests\Browser\Pages\SitesearchWidget;
use Tests\Browser\Pages\Spende;
use Tests\Browser\Pages\Team;
......@@ -168,7 +169,7 @@ class StaticPagesTest extends DuskTestCase
->clickLink("Widget")
->waitForLocation("/widget")
->clickLink("Suche im Web")
->waitForLocation("/websearch")
->waitForLocation("\/websearch\/")
->on(new WebsearchWidget);
});
}
......
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