From 6dfef8104d9f2ddf5c4b4dcaaaaf4ce01c974c12 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Mon, 20 May 2024 19:40:09 +0100 Subject: [PATCH] Fixes rebase --- spec/system/admin/order_cycles/simple_spec.rb | 11 ----------- spec/system/admin/products_v3/products_spec.rb | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/spec/system/admin/order_cycles/simple_spec.rb b/spec/system/admin/order_cycles/simple_spec.rb index 181600c450..d935baefe5 100644 --- a/spec/system/admin/order_cycles/simple_spec.rb +++ b/spec/system/admin/order_cycles/simple_spec.rb @@ -414,17 +414,6 @@ RSpec.describe ' # we need this assertion here to assure there is enough time to # toggle the variant box and evaluate the following assertion expect(page).to have_content product.name.upcase - - # we need this assertion here to assure there is enough time to - # toggle the variant box and evaluate the following assertion - expect(page).to have_content product.name - - # iterates between true / false, depending on the test case - expectation = expect_message ? :to : :not_to - expect(page).public_send(expectation, - have_content(%(No variant available for this product - (hidden via inventory settings)).squish)) - end end it "doesn't show a warning when going to 'outgoing products' tab" do diff --git a/spec/system/admin/products_v3/products_spec.rb b/spec/system/admin/products_v3/products_spec.rb index dfca1a90f2..53febf5bcd 100644 --- a/spec/system/admin/products_v3/products_spec.rb +++ b/spec/system/admin/products_v3/products_spec.rb @@ -1652,7 +1652,7 @@ RSpec.describe 'As an enterprise user, I can manage my products', feature: :admi expect { find("button.secondary.condensed.naked.icon-plus").click }.to change{ - page.all("input[aria-label=Name][placeholder='#{product.name}']", visible: false).count + page.all("input[aria-label=Name][placeholder='#{product.name}']", visible: false).count }.from(1).to(2) # When I fill out variant details and hit update