lib/et_test_helpers/common.rb
# Defines a section for a gds phone input component whose specification matches that of the section of
# the I18n file pointed to by specification.
# @param [Symbol] name The name of the primary method to be defined in order to access this component
# @param [Symbol, Hash, String] specification The symbol, hash or string to identify the component
# The only specification keys used are
# @option specification [String] :label The visual label for the phone input field (i.e. the label attached to it)
# @option specification [String] :hint If specified, the phone input field should have a hint matching this text to be valid
# @option specification [Hash] :errors A hash containing the different errors that can be shown - matched using has_error?
# @return [EtTestHelpers::Components::GovUKPhoneField] The site prism section
Defines a section for a gds phone input component whose specification matches that of the section of
the I18n file pointed to by specification.
Defines a section for a gds phone input component whose specification matches that of the section of the I18n file pointed to by specification .
def gds_phone_input(name, specification, **kw_args, &block)
        section name,
                govuk_component(:phone_field),
                :govuk_phone_field,
                specification,
                **DEFAULT_FIND_OPTIONS.merge(kw_args),
                &block
      end
def gds_phone_input ( name , specification , ** kw_args , & block ) section name , govuk_component ( :phone_field ) , :govuk_phone_field , specification , ** DEFAULT_FIND_OPTIONS . merge ( kw_args ) , & block end
Defines a section for a gds phone input component whose specification matches that of the section of
the I18n file pointed to by specification.
Defines a section for a gds phone input component whose specification matches that of the section of the I18n file pointed to by specification .
The site prism section
The site prism section
EtTestHelpers::Components::GovUKPhoneField
name
<not_specific>
specification
None
kw_args
<not_specific>
block
<not_specific>
<not_specific>
specification The symbol, hash or string to identify the component The only specification keys used are
specification The symbol hash or string to identify the component The only specification keys used are