mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Restarts checkout flow for state 'confirmation'
This commit is contained in:
@@ -433,7 +433,7 @@ module Spree
|
||||
all_adjustments.destroy_all
|
||||
payments.clear
|
||||
shipments.destroy_all
|
||||
restart_checkout_flow if state == "payment"
|
||||
restart_checkout_flow if state.in?(["payment", "confirmation"])
|
||||
end
|
||||
|
||||
def state_changed(name)
|
||||
|
||||
@@ -884,7 +884,6 @@ describe "As a consumer, I want to checkout my order", js: true do
|
||||
end
|
||||
|
||||
it "emptying the cart changes the order state back to address" do
|
||||
pending "fixing issue #9299"
|
||||
visit main_app.cart_path
|
||||
expect {
|
||||
find('#clear_cart_link').click
|
||||
|
||||
Reference in New Issue
Block a user