From e122fe3d2d9dca0005c4fee7d1ff40dadb768990 Mon Sep 17 00:00:00 2001 From: Ashish Gaur Date: Thu, 24 Apr 2025 12:32:15 +0530 Subject: [PATCH] 13221 Use have_select2 in rspec to test s2id matcher --- spec/system/admin/order_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/system/admin/order_spec.rb b/spec/system/admin/order_spec.rb index b8d89885f7..0f16e06732 100644 --- a/spec/system/admin/order_spec.rb +++ b/spec/system/admin/order_spec.rb @@ -1023,7 +1023,7 @@ RSpec.describe ' it "ships the order and shipment email is sent" do expect(page).to have_content "ready" expect(page).not_to have_content "shipped" - expect(page).to have_css("#s2id_add_variant_id") + expect(page).to have_select2 "add_variant_id" click_button 'Ship'