Skip to content

Commit

Permalink
Merge pull request #4756 from kristinalim/fix/4489-flaky_spec_for_edi…
Browse files Browse the repository at this point in the history
…ting_oc

4489 Flaky spec when editing outgoing exchanges in OC
  • Loading branch information
sauloperez authored Feb 4, 2020
2 parents 57775f4 + 9d0e26a commit 2b87922
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/features/admin/order_cycles_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,12 @@
find(:css, "tags-input .tags input").set "wholesale\n"
end

page.all("table.exchanges tr.distributor td.products").each(&:click)
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
end

uncheck "order_cycle_outgoing_exchange_2_variants_#{v1.id}"
check "order_cycle_outgoing_exchange_2_variants_#{v2.id}"
Expand Down

0 comments on commit 2b87922

Please sign in to comment.