mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
Update enterprise_roles_spec to work with Selenium
This commit is contained in:
committed by
luisramos0
parent
5ae33747ea
commit
69e44bdeb3
@@ -73,7 +73,9 @@ feature %q{
|
||||
page.should have_relationship u, e
|
||||
|
||||
within("#enterprise_role_#{er.id}") do
|
||||
find("a.delete-enterprise-role").click
|
||||
accept_alert do
|
||||
find("a.delete-enterprise-role").click
|
||||
end
|
||||
end
|
||||
|
||||
page.should_not have_relationship u, e
|
||||
@@ -122,7 +124,7 @@ feature %q{
|
||||
end
|
||||
|
||||
it "shows changes to enterprise contact or owner" do
|
||||
select user2.email, from: 'receives_notifications_dropdown', visible: false
|
||||
select2_select user2.email, from: 'receives_notifications_dropdown'
|
||||
within('#save-bar') { click_button 'Update' }
|
||||
within('.side_menu') { click_link 'Users' }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user