Ejemplo n.º 1
0
 /**
  * @Then I should see an/a field with value :value
  */
 public function seeFieldtWithValue($value)
 {
     if ($this->platformStatus == self::WAITING_FOR_PUBLISHING) {
         $this->clickEditActionBar('Publish');
     }
     $verification = new WebAssert($this->getSession());
     $verification->elementTextContains('css', '.ez-fieldview-value-content', $value);
 }
Ejemplo n.º 2
0
 /**
  *  @Then Publishing fails with validation error message :messege
  *
  * Creates a Content with the previously defined ContentType
  */
 public function failsWithMessage($message)
 {
     $verification = new WebAssert($this->getSession());
     $verification->elementTextContains('css', '.ez-editfield-error-message', $message);
 }