Add session helper for feature specs

This commit is contained in:
Artur Beljajev 2016-12-08 17:48:09 +02:00
parent e6cd5f66c8
commit 8de0b8b591
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