mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
parent
df54100710
commit
117399af5e
1 changed files with 9 additions and 0 deletions
|
@ -1,5 +1,14 @@
|
||||||
module Features
|
module Features
|
||||||
module SessionHelpers
|
module SessionHelpers
|
||||||
|
def sign_in_to_admin_area(user: FactoryGirl.create(:admin_user))
|
||||||
|
visit admin_login_url
|
||||||
|
|
||||||
|
fill_in 'admin_user[username]', with: user.username
|
||||||
|
fill_in 'admin_user[password]', with: user.password
|
||||||
|
|
||||||
|
click_button 'Log in'
|
||||||
|
end
|
||||||
|
|
||||||
def sign_in_to_registrar_area(user: FactoryGirl.create(:api_user))
|
def sign_in_to_registrar_area(user: FactoryGirl.create(:api_user))
|
||||||
visit registrar_login_url
|
visit registrar_login_url
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue