mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Refresh shipment rates when changing shipping method cost
The test setup here wasn't correctly updating he shipment's shipping_rates, so they were still zero.
This commit is contained in:
@@ -108,6 +108,7 @@ feature "Order Management", js: true do
|
||||
|
||||
before do
|
||||
order.shipment.shipping_method.calculator.update(preferred_amount: 5.0)
|
||||
order.refresh_shipment_rates
|
||||
order.save
|
||||
order.reload
|
||||
|
||||
|
||||
Reference in New Issue
Block a user