Merge pull request #8944 from jibees/8940-display-update-button-on-order-unless-order-is-complete

Split checkout: Display "Update" button on the order table page unless order is complete
This commit is contained in:
Filipe
2022-03-07 11:58:34 +00:00
committed by GitHub
2 changed files with 2 additions and 6 deletions

View File

@@ -22,7 +22,7 @@
= render 'bought' if show_bought_items? && @order.cart?
%tfoot#edit-cart
= render 'spree/orders/form/cart_actions_row' if @order.cart?
= render 'spree/orders/form/cart_actions_row' unless @order.complete?
%tr
%td.text-right{colspan:"3"}

View File

@@ -169,11 +169,7 @@ describe "As a consumer, I want to checkout my order", js: true do
expect(page).to have_current_path("/checkout/payment")
end
context "when I have an out of stock product in my cart" do
pending("awaiting closure bug #8940") do
it_behaves_like "when I have an out of stock product in my cart"
end
end
it_behaves_like "when I have an out of stock product in my cart"
end
end