mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Update enterprise_relationships_spec to work with Selenium
This commit is contained in:
committed by
luisramos0
parent
7dc792b6fe
commit
5ae33747ea
@@ -80,7 +80,9 @@ feature %q{
|
||||
visit admin_enterprise_relationships_path
|
||||
page.should have_relationship e1, e2, ['to add to order cycle']
|
||||
|
||||
first("a.delete-enterprise-relationship").click
|
||||
accept_alert do
|
||||
first("a.delete-enterprise-relationship").click
|
||||
end
|
||||
|
||||
page.should_not have_relationship e1, e2
|
||||
EnterpriseRelationship.where(id: er.id).should be_empty
|
||||
|
||||
Reference in New Issue
Block a user