Merge pull request #13821 from piyyu/fix-import-multiple-products

Fix “Import multiple products” button route on empty products page
This commit is contained in:
Gaetan Craig-Riou
2026-01-16 09:55:33 +11:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -7,5 +7,6 @@
#no-products-actions
%a{ href: "/admin/products/new", class: "button icon-plus", icon: "icon-plus" }
= t(:new_product)
%a{ href: "/admin/products/import", class: "button icon-upload secondary", icon: "icon-upload" }
%a{ href: admin_product_import_path, class: "button icon-upload secondary", icon: "icon-upload" }
= t(".import_products")

View File

@@ -27,7 +27,7 @@ RSpec.describe 'As an enterprise user, I can manage my products' do
# displays buttons to add products with the correct links
expect(page).to have_link(class: "button", text: "New Product", href: "/admin/products/new")
expect(page).to have_link(class: "button", text: "Import multiple products",
href: "/admin/products/import")
href: admin_product_import_path)
end
end