From dd0957fa720f7d05ee259974defaab5dc4b1aa1c Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Thu, 26 Jan 2023 18:09:53 +0100 Subject: [PATCH] Remove test no related to consumer spec Furthermore, this test is more about testing the text editor (itself) which is an external library --- spec/system/consumer/shopping/products_spec.rb | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/spec/system/consumer/shopping/products_spec.rb b/spec/system/consumer/shopping/products_spec.rb index c310d6ef3e..7ee9e3c799 100644 --- a/spec/system/consumer/shopping/products_spec.rb +++ b/spec/system/consumer/shopping/products_spec.rb @@ -56,24 +56,7 @@ describe "As a consumer I want to view products", js: true do expect(html).to include('

Formatted product description.

Link to an external site') end - # -- edit product via admin interface - login_as_admin_and_visit spree.edit_admin_product_path(product) - expect(page.find("div[id^='taTextElement']")['innerHTML']).to include('external site') - fill_in 'product_name', with: "#{product.name}_update" - click_button 'Update' - - # -- check back consumer product view - visit shop_path - expect(page).to have_content("#{product.name}_update") - click_link("#{product.name}_update") - - expect(page).to have_selector '.reveal-modal' - modal_should_be_open_for product - - within(".reveal-modal") do - expect(html).to include('

Formatted product description.

Link to an external site') - end end it "does not show unsecure HTML" do