Add session helper for feature specs

This commit is contained in:
Artur Beljajev 2016-11-29 00:07:28 +02:00
parent 5c04681fc0
commit 9c8eba9ea9
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,12 @@
module Features
module SessionHelpers
def sign_in_to_registrar_area(user: FactoryGirl.create(:api_user))
visit registrar_login_path
fill_in 'depp_user_tag', with: user.username
fill_in 'depp_user_password', with: user.password
click_button 'Login'
end
end
end