Sha256: 0c1b480414b7894546e6d9bed87474da3ac0d1bf3b57ffc83b25ac10393bba48

Contents?: true

Size: 513 Bytes

Versions: 1

Compression:

Stored size: 513 Bytes

Contents

module TestHelpers
  module Features
    URL = 'localhost:3000/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

1 entries across 1 versions & 1 rubygems

Version Path
nodes-0.2.4 spec/support/test_helpers.rb