From 5599c90fcc952d55c6b79fd01af557711a8786cf Mon Sep 17 00:00:00 2001 From: Sean Doyle Date: Fri, 1 Nov 2024 13:14:45 -0400 Subject: [PATCH] Update spec/features/products_form_spec.rb --- spec/features/products_form_spec.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spec/features/products_form_spec.rb b/spec/features/products_form_spec.rb index 3f72dc944..469cff2fb 100644 --- a/spec/features/products_form_spec.rb +++ b/spec/features/products_form_spec.rb @@ -77,10 +77,8 @@ HTML click_on "Update Product" - within(".trix-content") do - within("div", text: "A changed banner without a link.") do - expect(page).to have_no_link(href: "https://example.com") - end + within(".trix-content div", text: "A changed banner without a link.") do + expect(page).to have_no_link(href: "https://example.com") end expect(page).to have_link(product.product_meta_tag.meta_title.to_s) expect(page).to have_flash(