mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Ensure products list has loaded before interacting with product list UI elements
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user