public function verifyPage($language = '')
 {
     $namedSelectors = $this->getNamedSelectors();
     if (!$language) {
         $language = Helper::getCurrentLanguage($this);
     }
     $assert = new \Behat\Mink\WebAssert($this->getSession());
     $assert->pageTextContains($namedSelectors['gtc'][$language]);
 }
Esempio n. 2
0
 /**
  * Verify if we're on an expected page. Throw an exception if not.
  */
 protected function verifyPage()
 {
     if ($this->logout()) {
         $this->open();
         return;
     }
     $assert = new \Behat\Mink\WebAssert($this->getSession());
     $assert->pageTextContains('Sie besitzen bereits ein Kundenkonto');
 }
 /**
  * @Given /^the "(?P<field>[^"]*)" field should contain:$/
  */
 public function theFieldShouldContain($field, \Behat\Gherkin\Node\PyStringNode $string)
 {
     $assert = new \Behat\Mink\WebAssert($this->getSession());
     $assert->fieldValueEquals($field, $string->getRaw());
 }