From 58d2e9d9aa5eb1612ef90b3b65e615adc57f97cd Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 15 Nov 2023 10:28:45 +1100 Subject: [PATCH] Fix pending spec example and clarify displayed content --- spec/system/consumer/shopping/products_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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