Adjust exchange_row assertion to use slightly more specific criteria

This commit is contained in:
Matt-Yorkley
2020-07-07 10:38:06 +02:00
parent be1e39f0cb
commit c8254b8338

View File

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