Skip to content

Commit

Permalink
Merge pull request #13066 from mkllnk/fix-flaky-order-spec
Browse files Browse the repository at this point in the history
Fix flaky admin order spec
  • Loading branch information
dacook authored Jan 10, 2025
2 parents 314126a + b8c5b24 commit 7f2266e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec/system/admin/order_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,13 @@ def new_order_with_distribution(distributor, order_cycle)

expect {
select2_select product.name, from: 'add_variant_id', search: true

find('button.add_variant').click

expect(page).to have_css("#order_adjustments", text: 15.00)
expect(page).to have_css(".order-total", text: 63.99)
}.to change { order_with_fees.payments.first.adjustment.amount }.from(10.00).to(15.00)
.and change { order_with_fees.reload.total }.from(36.00).to(63.99)

expect(page).to have_css("#order_adjustments", text: 15.00)
expect(page).to have_css(".order-total", text: 63.99)
end
end

Expand Down

0 comments on commit 7f2266e

Please sign in to comment.