public function verifyNewFieldDefinitionFormExists(string $fieldName): void
    {
        $form = $this->context->getElementByText(sprintf($this::NEW_FIELD_TITLE_PATTERN, EzFieldElement::getFieldInternalNameByName($fieldName)), $this->fields['fieldDefinitionName']);
        if ($form === null) {
            throw new \Exception('Field definition not added to the form.');
        }
    }
public function verifyNewFieldDefinitionFormExists(string $fieldName): void
    {
        $form = $this->context->getElementByText(sprintf($this::NEW_FIELD_TITLE_PATTERN, EzFieldElement::getFieldInternalNameByName($fieldName)), $this->fields['fieldDefinitionName']);
        if ($form === null) {
            throw new \Exception('Field definition not added to the form.');
        }
    }
public function verifyNewFieldDefinitionFormExists ( string $ fieldName ) : void { $ form = $ this -> context -> getElementByText ( sprintf ( $ this :: NEW_FIELD_TITLE_PATTERN , EzFieldElement :: getFieldInternalNameByName ( $ fieldName ) ) , $ this -> fields [ 'fieldDefinitionName' ] ) ; if ( $ form === null ) { throw new \ Exception ( 'Field definition not added to the form.' ) ; } }
Verifies that form container with new field definition of given name is visible.

@param string $fieldName

@throws \Exception
Verifies that form container with new field definition of given name is visible .