mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
more precise spec for error message wording
This commit is contained in:
@@ -351,7 +351,7 @@ describe 'As an admin, I can manage products', feature: :admin_style_v3 do
|
||||
product_a.reload
|
||||
}.to_not change { product_a.name }
|
||||
|
||||
expect(page).not_to have_content("0 product was saved correctly")
|
||||
expect(page).not_to have_content("0 product was saved correctly, but")
|
||||
expect(page).to have_content("1 product could not be saved")
|
||||
expect(page).to have_content "Please review the errors and try again"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user