From 249c0029dd590a3908ee459cc831c3cbb8ae9a2c Mon Sep 17 00:00:00 2001 From: binarygit Date: Mon, 13 Nov 2023 13:53:05 +0545 Subject: [PATCH] Improve tests --- spec/system/consumer/shopping/products_spec.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/spec/system/consumer/shopping/products_spec.rb b/spec/system/consumer/shopping/products_spec.rb index 6e14e5ca78..dd3dd08066 100644 --- a/spec/system/consumer/shopping/products_spec.rb +++ b/spec/system/consumer/shopping/products_spec.rb @@ -147,14 +147,12 @@ describe "As a consumer I want to view products" do truncate: false, href: false) # check inside list of products within "#product-#{product.id} .product-description" do - expect(html).to include(html) expect(html).not_to include(not_include) if not_include expect(page).to have_content "..." if truncate # it truncates a long product description end # check in product description modal click_link product.name - expect(page).to have_selector '.reveal-modal' modal_should_be_open_for product within(".reveal-modal") do expect(find_link('external site')[:target]).to eq('_blank') if href