Sha256: 7799189bd3d0d3f629d49fda101e8c4554e8535bba575b2f299fccb065e2030d

Contents?: true

Size: 513 Bytes

Versions: 4

Compression:

Stored size: 513 Bytes

Contents

module TestHelpers
  module Features
    URL = 'localhost:3001/nodes'
    def login
      # user = User.find_by_name 'Test'
      # login_user(user, 'password')
      goto "#{URL}/nodes"
    end
    def login_user(user, password)
      goto "#{URL}/login"
      text_field( id: 'email').set 'test@marketram.com'
      text_field( id: 'password').set 'password'
      button(text: 'login').click
      wait
    end
  end
end

RSpec.configure do |config|
  config.include TestHelpers::Features, type: :feature
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nodes-0.2.8 spec/support/test_helpers.rb
nodes-0.2.7 spec/support/test_helpers.rb
nodes-0.2.6 spec/support/test_helpers.rb
nodes-0.2.5 spec/support/test_helpers.rb