From b9eea88f5c4a8b9ba72547d604ff693b52f12375 Mon Sep 17 00:00:00 2001 From: isidzukuri Date: Thu, 15 Feb 2024 09:20:32 +0200 Subject: [PATCH] more precise spec for error message wording --- spec/system/admin/products_v3/products_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/system/admin/products_v3/products_spec.rb b/spec/system/admin/products_v3/products_spec.rb index 4dd1835ee2..8a1402aaaf 100644 --- a/spec/system/admin/products_v3/products_spec.rb +++ b/spec/system/admin/products_v3/products_spec.rb @@ -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