From 9af7975d1c48fa77f129686991ee618a3b209fe7 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Wed, 29 May 2024 15:40:30 +0100 Subject: [PATCH] Applies existing helper to assert on rows with product name --- spec/system/admin/products_v3/products_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/system/admin/products_v3/products_spec.rb b/spec/system/admin/products_v3/products_spec.rb index adf8b94e3a..57f3390b82 100644 --- a/spec/system/admin/products_v3/products_spec.rb +++ b/spec/system/admin/products_v3/products_spec.rb @@ -80,8 +80,8 @@ RSpec.describe 'As an enterprise user, I can manage my products', feature: :admi expect(page).to have_selector "th", text: "Actions" # displays product list - expect(page).to have_field("_products_0_name", with: p1.name.to_s) - expect(page).to have_field("_products_1_name", with: p2.name.to_s) + expect(page).to have_selector row_containing_name(p1.name.to_s) + expect(page).to have_selector row_containing_name(p2.name.to_s) end end