Ejemplo n.º 1
0
 /**
  * @Then I should see an/a :type field
  * @Then I should see an/a :label label related with the :type field
  */
 public function seeFieldtOfType($type, $label = null)
 {
     if ($this->platformStatus == self::WAITING_FOR_PUBLISHING) {
         $this->clickEditActionBar('Publish');
     }
     $verification = new WebAssert($this->getSession());
     // for view we need the internal field identifier...
     $internalName = $this->getFieldTypeManager()->getFieldTypeInternalIdentifier($type);
     $verification->elementExists('css', ".ez-fieldview-{$internalName} .ez-fieldview-value-content");
     if ($label != null) {
         $verification->elementTextContains('css', ".ez-fieldview-{$internalName} .ez-fieldview-name", $label);
     }
 }
Ejemplo n.º 2
0
 /**
  * @Then I should see an/a :type field
  * @Then I should see an/a :label label related with the :type field
  */
 public function seeFieldtOfType($type, $label = null)
 {
     $this->executeDelayedActions();
     $verification = new WebAssert($this->getSession());
     $internalName = $this->getFieldTypeManager()->getFieldTypeInternalIdentifier($type);
     $selector = ".ez-fieldview-{$internalName}";
     $verification->elementExists('css', $selector);
     if ($label != null) {
         $verification->elementTextContains('css', '.ez-fieldview-name', $label);
     }
 }