Sha256: a7248f68f38d7efaa0e64a670c7d82cdc714ce22e240e5f4525f092c4aabb492
Contents?: true
Size: 477 Bytes
Versions: 1
Compression:
Stored size: 477 Bytes
Contents
module TestHelpers module Features URL = 'localhost:3001' def login user = User.find_by_name 'Test' login_user(user, 'password') 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.3 | spec/support/test_helpers.rb |