mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Fixing auth workflowsg
This commit is contained in:
@@ -33,7 +33,7 @@ module AuthenticationWorkflow
|
||||
:login => 'admin@ofn.org')
|
||||
|
||||
admin_user.spree_roles << admin_role
|
||||
login_to_admin_as admin_user
|
||||
quick_login_as admin_user
|
||||
end
|
||||
|
||||
def create_enterprise_user(enterprises = [])
|
||||
@@ -47,10 +47,12 @@ module AuthenticationWorkflow
|
||||
end
|
||||
|
||||
def login_to_admin_as user
|
||||
quick_login_as user
|
||||
visit spree.admin_path
|
||||
fill_in 'spree_user_email', :with => user.email
|
||||
fill_in 'spree_user_password', :with => user.password
|
||||
click_button 'Login'
|
||||
#visit spree.admin_path
|
||||
#fill_in 'spree_user_email', :with => user.email
|
||||
#fill_in 'spree_user_password', :with => user.password
|
||||
#click_button 'Login'
|
||||
end
|
||||
|
||||
def login_to_consumer_section
|
||||
|
||||
Reference in New Issue
Block a user