예제 #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);
 }
예제 #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);
 }