From c8254b833886f84deed2c3532cd6a65cc8fa3e9d Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Tue, 7 Jul 2020 10:38:06 +0200 Subject: [PATCH] Adjust exchange_row assertion to use slightly more specific criteria --- .../order_cycles/complex_updating_specific_time_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/features/admin/order_cycles/complex_updating_specific_time_spec.rb b/spec/features/admin/order_cycles/complex_updating_specific_time_spec.rb index fb90552e88..52c7d45f78 100644 --- a/spec/features/admin/order_cycles/complex_updating_specific_time_spec.rb +++ b/spec/features/admin/order_cycles/complex_updating_specific_time_spec.rb @@ -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}"