mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Update enterprise_fees_spec to work with Selenium
This commit is contained in:
committed by
luisramos0
parent
c2432fab0b
commit
1923c0dbc6
@@ -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}."
|
||||
|
||||
Reference in New Issue
Block a user