Skip to content

Commit

Permalink
Merge pull request #8944 from jibees/8940-display-update-button-on-or…
Browse files Browse the repository at this point in the history
…der-unless-order-is-complete

Split checkout: Display "Update" button on the order table page unless order is complete
  • Loading branch information
filipefurtad0 authored Mar 7, 2022
2 parents be2898f + e14dad1 commit 5606be7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/views/spree/orders/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down
6 changes: 1 addition & 5 deletions spec/system/consumer/split_checkout_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,7 @@
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

Expand Down

0 comments on commit 5606be7

Please sign in to comment.