Ensure products list has loaded before interacting with product list UI elements

This commit is contained in:
Matt-Yorkley
2020-07-07 13:14:11 +02:00
parent 3d955a952c
commit f2e0b0f35a

View File

@@ -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