diff --git a/spec/furniture/marketplace/delivery_areas_system_spec.rb b/spec/furniture/marketplace/delivery_areas_system_spec.rb index 68422dfb7..b6d00bb3f 100644 --- a/spec/furniture/marketplace/delivery_areas_system_spec.rb +++ b/spec/furniture/marketplace/delivery_areas_system_spec.rb @@ -33,7 +33,7 @@ it "Makes the DeliveryArea selectable" do visit(polymorphic_path(marketplace.location(child: :delivery_areas))) click_link("Archived Delivery Areas") - within("##{dom_id(delivery_area)}") do + within(delivery_area) do click_link("Edit") end @@ -55,7 +55,7 @@ cart = create(:marketplace_cart, delivery_area:, marketplace:) visit(polymorphic_path(marketplace.location(child: :delivery_areas))) click_link("Archived Delivery Areas") - within("##{dom_id(delivery_area)}") do + within(delivery_area) do accept_confirm { click_link(I18n.t("destroy.link_to")) } end @@ -71,7 +71,7 @@ visit(polymorphic_path(marketplace.location(child: :delivery_areas))) click_link("Archived Delivery Areas") - within("##{dom_id(delivery_area)}") do + within(delivery_area) do expect(page).to have_no_content(I18n.t("destroy.link_to")) end end