mirror of
https://github.com/internetee/registry.git
synced 2025-08-16 14:33:55 +02:00
Fix spec helpers
This commit is contained in:
parent
1ff200576e
commit
0a5de433c2
2 changed files with 3 additions and 3 deletions
|
@ -12,8 +12,8 @@ module Features
|
||||||
def sign_in_to_registrar_area(user: create(:api_user))
|
def sign_in_to_registrar_area(user: create(:api_user))
|
||||||
visit new_registrar_user_session_url
|
visit new_registrar_user_session_url
|
||||||
|
|
||||||
fill_in 'depp_user_tag', with: user.username
|
fill_in 'registrar_user_username', with: user.username
|
||||||
fill_in 'depp_user_password', with: user.plain_text_password
|
fill_in 'registrar_user_password', with: user.plain_text_password
|
||||||
|
|
||||||
click_button 'Login'
|
click_button 'Login'
|
||||||
end
|
end
|
||||||
|
|
|
@ -5,7 +5,7 @@ module Requests
|
||||||
end
|
end
|
||||||
|
|
||||||
def sign_in_to_registrar_area(user: create(:api_user))
|
def sign_in_to_registrar_area(user: create(:api_user))
|
||||||
post registrar_user_session_path, { depp_user: { tag: user.username, password: user.plain_text_password } }
|
post registrar_user_session_path, { registrar_user: { username: user.username, password: user.plain_text_password } }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Add table
Add a link
Reference in a new issue