lib/et_test_helpers/common.rb
# Helper to provide the correct component class for use as the second parameter to the section method in site prism
# @param [String,Symbol] type - The type of component eg :text_field
# @return [::EtTestHelpers::Components::GovUKTextField] - This can be many types
Helper to provide the correct component class for use as the second parameter to the section method in site prism
Helper to provide the correct component class for use as the second parameter to the section method in site prism
def gds_text_input(name, specification, **kw_args, &block)
        section name,
                govuk_component(:text_field, scope: specification),
                :govuk_text_field,
                specification,
                **DEFAULT_FIND_OPTIONS.merge(kw_args),
                &block
      end
def gds_text_input ( name , specification , ** kw_args , & block ) section name , govuk_component ( :text_field , scope : specification ) , :govuk_text_field , specification , ** DEFAULT_FIND_OPTIONS . merge ( kw_args ) , & block end
Helper to provide the correct component class for use as the second parameter to the section method in site prism
Helper to provide the correct component class for use as the second parameter to the section method in site prism
This can be many types
This can be many types
::EtTestHelpers::Components::GovUKTextField
name
<not_specific>
specification
<not_specific>
kw_args
<not_specific>
block
<not_specific>
<not_specific>
The type of component eg :text_field
The type of component eg : text_field