mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
Add session helper for feature specs
This commit is contained in:
parent
5c04681fc0
commit
9c8eba9ea9
2 changed files with 14 additions and 0 deletions
12
spec/support/features/session_helpers.rb
Normal file
12
spec/support/features/session_helpers.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue