mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
Adjust exchange_row assertion to use slightly more specific criteria
This commit is contained in:
@@ -109,8 +109,10 @@ feature '
|
||||
exchange_rows = page.all("table.exchanges tbody")
|
||||
exchange_rows.each do |exchange_row|
|
||||
exchange_row.find("td.products").click
|
||||
# Wait for the products panel to be visible.
|
||||
expect(exchange_row).to have_selector "tr", count: 2
|
||||
within(exchange_row) do
|
||||
# Wait for the products panel to be visible.
|
||||
expect(page).to have_selector ".exchange-distributed-products"
|
||||
end
|
||||
end
|
||||
|
||||
uncheck "order_cycle_outgoing_exchange_2_variants_#{v1.id}"
|
||||
|
||||
Reference in New Issue
Block a user