diff --git a/app/views/admin/products_v3/_no_products.html.haml b/app/views/admin/products_v3/_no_products.html.haml index fb81197908..efb86d0b50 100644 --- a/app/views/admin/products_v3/_no_products.html.haml +++ b/app/views/admin/products_v3/_no_products.html.haml @@ -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") + diff --git a/spec/system/admin/products_v3/actions_spec.rb b/spec/system/admin/products_v3/actions_spec.rb index 6ce798332a..8b09bf6b7b 100644 --- a/spec/system/admin/products_v3/actions_spec.rb +++ b/spec/system/admin/products_v3/actions_spec.rb @@ -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