Sha256: a89cb5174dd552a602b826405f9dbb1d8b3f2384aa606f0764ed6341391a6c5a

Contents?: true

Size: 555 Bytes

Versions: 9

Compression:

Stored size: 555 Bytes

Contents

module Demo
  class RegistrationPage
    include RSpec::Core::DSL
    attr_reader :elements
    def initialize
      @elements = Demo::Elements::RegistrationPage.new
    end

    def step_1(params={})
      params[:submit] ||= 'true'
      params[:submit] = params[:submit].to_bool
      params[:email] ||= ''
      params[:password] ||= ''
      @elements.email.set(params[:email]) if params[:email] != ''
      @elements.password.set(params[:password]) if params[:password] != ''
      @elements.step_1_next.click if params[:submit]
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
whirlwind-0.1.8 sites/demo/flows/registration_flows.rb
whirlwind-0.1.7 sites/demo/flows/registration_flows.rb
whirlwind-0.1.6 sites/demo/flows/registration_flows.rb
whirlwind-0.1.5 sites/demo/flows/registration_flows.rb
whirlwind-0.1.4 sites/demo/flows/registration_flows.rb
whirlwind-0.1.3 sites/demo/flows/registration_flows.rb
whirlwind-0.1.2 sites/demo/flows/registration_flows.rb
whirlwind-0.1.1 sites/demo/flows/registration_flows.rb
whirlwind-0.1.0 sites/demo/flows/registration_flows.rb