diff --git a/app/views/split_checkout/_summary.html.haml b/app/views/split_checkout/_summary.html.haml index f6ee230594..692be1510d 100644 --- a/app/views/split_checkout/_summary.html.haml +++ b/app/views/split_checkout/_summary.html.haml @@ -34,6 +34,10 @@ = @order.bill_address.zipcode %div = @order.bill_address.country + - if @order.special_instructions.present? + %br + %em + = @order.special_instructions - if @order.shipping_method.description.present? %div .summary-subtitle diff --git a/spec/system/consumer/split_checkout_spec.rb b/spec/system/consumer/split_checkout_spec.rb index b293aff3df..98f51b5a39 100644 --- a/spec/system/consumer/split_checkout_spec.rb +++ b/spec/system/consumer/split_checkout_spec.rb @@ -793,6 +793,17 @@ describe "As a consumer, I want to checkout my order" do create(:order_ready_for_confirmation, distributor: distributor) } + describe "with an order with special instructions" do + before do + order.update_attribute(:special_instructions, "Please deliver on Tuesday") + visit checkout_step_path(:summary) + end + + it "displays the special instructions" do + expect(page).to have_content "Please deliver on Tuesday" + end + end + describe "completing the checkout" do it "keeps the distributor selected for the current user after completion" do visit checkout_step_path(:summary)