From d5ae9b5bccc2ddb1dd8ad8a1afa8760d49e38124 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Mon, 10 Jun 2024 16:41:47 -0600 Subject: [PATCH] Adds a test to assure that the new product path works as expected The funcitonaliy itself should not be affected by BUU, so the tests remain at ./spec/system/admin/products_spec.rb --- spec/system/admin/products_v3/products_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/system/admin/products_v3/products_spec.rb b/spec/system/admin/products_v3/products_spec.rb index c861dc933b..67a404abdb 100644 --- a/spec/system/admin/products_v3/products_spec.rb +++ b/spec/system/admin/products_v3/products_spec.rb @@ -623,6 +623,15 @@ RSpec.describe 'As an enterprise user, I can manage my products', feature: :admi end end + describe "creating a new product" do + it "redirects to the New Product page" do + visit admin_products_url + expect { + click_link("New Product") + }.to change { current_path }.to(spree.new_admin_product_path) + end + end + describe "adding variants" do it "creates a new variant" do click_on "New variant"