spec/support/test_helpers.rb in nodes-0.2.3 vs spec/support/test_helpers.rb in nodes-0.2.4
- old
+ new
@@ -1,10 +1,11 @@
module TestHelpers
module Features
- URL = 'localhost:3001'
+ URL = 'localhost:3000/nodes'
def login
- user = User.find_by_name 'Test'
- login_user(user, 'password')
+ # 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'