diff --git a/spec/system/consumer/shopping/products_spec.rb b/spec/system/consumer/shopping/products_spec.rb index ef4fef65f3..c7cec7efa2 100644 --- a/spec/system/consumer/shopping/products_spec.rb +++ b/spec/system/consumer/shopping/products_spec.rb @@ -86,7 +86,7 @@ describe "As a consumer I want to view products" do # It truncates a long product description. within_product_description(product) do - expect(html).to include product.description + expect(html).to include "Formatted product description: Lorem ipsum" expect(page).to have_content "..." end within_product_modal(product) do @@ -105,10 +105,12 @@ describe "As a consumer I want to view products" do within_product_description(product) do expect(html).to include "

Safe

" expect(html).not_to include "" + expect(page).to have_content "alert('Dangerous!'); Safe" end within_product_modal(product) do expect(html).to include "

Safe

" expect(html).not_to include "" + expect(page).to have_content "alert('Dangerous!'); Safe" end end end