From 38721d9f369eb2ecadb9b4ba7b5bed435a7a0610 Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Fri, 13 Sep 2024 14:33:46 +1000 Subject: [PATCH] Per review, fix the tab spec Both tabs have the product name, so add check got the image on the product details tab. --- spec/system/admin/products_v3/actions_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/system/admin/products_v3/actions_spec.rb b/spec/system/admin/products_v3/actions_spec.rb index f22d7c3b14..0da32832a6 100644 --- a/spec/system/admin/products_v3/actions_spec.rb +++ b/spec/system/admin/products_v3/actions_spec.rb @@ -493,13 +493,14 @@ RSpec.describe 'As an enterprise user, I can manage my products' do within "#product-preview-modal" do # Shop tab - expect(page).to have_selector("h3 a span", text: "Apples") + expect(page).to have_selector("h3", text: "Apples") add_buttons = page.all(".add-variant") expect(add_buttons.length).to eql(2) # Product Details tab find("a", text: "Product details").click # click_link doesn't work expect(page).to have_selector("h3", text: "Apples") + expect(page).to have_selector(".product-img") # Closing the modal click_button "Close"