mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
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:
@@ -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"}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user