Restarts checkout flow for state 'confirmation'

This commit is contained in:
filipefurtad0
2022-06-11 09:17:10 +01:00
parent f3ff835902
commit 9ab672d0b1
2 changed files with 1 additions and 2 deletions

View File

@@ -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)

View File

@@ -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