From 6dbfb36e521e2279b1fcd2e98526e752854581fa Mon Sep 17 00:00:00 2001 From: David Cook Date: Fri, 21 Jul 2023 12:48:31 +1000 Subject: [PATCH] Spec: use url helpers To be consistent with other specs. --- spec/system/admin/products_v3/products_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/system/admin/products_v3/products_spec.rb b/spec/system/admin/products_v3/products_spec.rb index c1aab0fde8..4e7b7ecc97 100644 --- a/spec/system/admin/products_v3/products_spec.rb +++ b/spec/system/admin/products_v3/products_spec.rb @@ -19,13 +19,13 @@ describe 'As an admin, I can see the new product page' do end it "can see the new product page" do - visit "/admin/products_v3" + visit admin_products_v3_index_url expect(page).to have_content "Bulk Edit Products" end describe "pagination" do before do - visit "/admin/products_v3" + visit admin_products_v3_index_url end it "has a pagination, has 15 products per page by default and can change the page" do @@ -49,7 +49,7 @@ describe 'As an admin, I can see the new product page' do describe "search" do before do - visit "/admin/products_v3" + visit admin_products_v3_index_url end context "product has searchable term" do