From a8ff6967926fb746828229b3c8d2d0b70b39ef37 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Mon, 10 Jun 2024 10:36:30 -0600 Subject: [PATCH] Removes deleting and cloning test from the legacy bulk product edit page These are covered in the new BUU products page --- spec/system/admin/products_spec.rb | 46 ------------------------------ 1 file changed, 46 deletions(-) diff --git a/spec/system/admin/products_spec.rb b/spec/system/admin/products_spec.rb index c979f34b49..987da7443e 100644 --- a/spec/system/admin/products_spec.rb +++ b/spec/system/admin/products_spec.rb @@ -256,52 +256,6 @@ RSpec.describe ' end end - describe "deleting" do - let!(:product1) { create(:simple_product, name: 'a product to keep', supplier: @supplier) } - - context 'a simple product' do - let!(:product2) { create(:simple_product, name: 'a product to delete', supplier: @supplier) } - - before do - login_as_admin - visit spree.admin_products_path - - within "#p_#{product2.id}" do - accept_alert { page.find("[data-powertip=Remove]").click } - end - visit current_path - end - - it 'removes it from the product list' do - expect(page).not_to have_selector "#p_#{product2.id}" - expect(page).to have_selector "#p_#{product1.id}" - end - end - end - - describe 'cloning' do - let!(:product1) { - create(:simple_product, name: 'a weight product', supplier: @supplier, variant_unit: "weight") - } - - context 'products' do - before do - login_as_admin - visit spree.admin_products_path - end - - it 'creates a copy of the product' do - within "#p_#{product1.id}" do - page.find("[data-powertip=Clone]").click - end - visit current_path - within "#p_#{product1.id + 1}" do - expect(page).to have_input "product_name", with: 'COPY OF a weight product' - end - end - end - end - context "as an enterprise user" do let!(:tax_category) { create(:tax_category) } let(:filter) { { producerFilter: 2 } }