diff --git a/spec/support/request/shop_workflow.rb b/spec/support/request/shop_workflow.rb index c6a469e6c4..9e64ea19cc 100644 --- a/spec/support/request/shop_workflow.rb +++ b/spec/support/request/shop_workflow.rb @@ -96,6 +96,7 @@ module ShopWorkflow def within_variant(variant = nil) selector = variant ? "#variant-#{variant.id}" : ".variants" + expect(page).to have_selector selector within(selector) do yield end