Update enterprise_relationships_spec to work with Selenium

This commit is contained in:
Rob Harrington
2018-05-31 20:55:13 +10:00
committed by luisramos0
parent 7dc792b6fe
commit 5ae33747ea

View File

@@ -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