more precise spec for error message wording

This commit is contained in:
isidzukuri
2024-02-15 09:20:32 +02:00
parent c0e820e447
commit b9eea88f5c

View File

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