mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user