Update enterprise_fees_spec to work with Selenium

This commit is contained in:
Rob Harrington
2018-06-01 08:21:17 +10:00
committed by luisramos0
parent c2432fab0b
commit 1923c0dbc6

View File

@@ -97,7 +97,9 @@ feature %q{
visit admin_enterprise_fees_path
# And I click delete
find("a.delete-resource").click
accept_alert do
find("a.delete-resource").click
end
# Then my enterprise fee should have been deleted
visit admin_enterprise_fees_path
@@ -116,7 +118,9 @@ feature %q{
visit admin_enterprise_fees_path
# And I click delete
find("a.delete-resource").click
accept_alert do
find("a.delete-resource").click
end
# Then I should see an error
expect(page).to have_content "That enterprise fee cannot be deleted as it is referenced by a product distribution: #{p.id} - #{p.name}."