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
This commit is contained in:
filipefurtad0
2024-06-10 16:41:47 -06:00
parent 50359695b5
commit d5ae9b5bcc

View File

@@ -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"