From 7ea3834900df5f6972d7bff07d3b4d5a914bae27 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Thu, 18 May 2023 11:57:15 +0100 Subject: [PATCH 1/2] Updates warning_forfeit_remaining_amount default message --- config/locales/en.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index 6701e895da..a8555092b7 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2069,7 +2069,7 @@ en: placeholder: Enter voucher code remove_code: Remove code confirm_delete: Are you sure you want to remove the voucher? - warning_forfeit_remaining_amount: Your voucher value is more than your order. By using this voucher you are forfeiting the remaining value. + warning_forfeit_remaining_amount: "Note: if your order total is less than your voucher you may not be able to spend the remaining value." step3: delivery_details: title: Delivery details From c99829e457dc628c486ba604763a775c6080bf13 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Thu, 18 May 2023 12:07:23 +0100 Subject: [PATCH 2/2] Updates spec to reflect change on en.yml --- spec/system/consumer/split_checkout_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/system/consumer/split_checkout_spec.rb b/spec/system/consumer/split_checkout_spec.rb index f0e5fb6fc6..e2fda8fcf2 100644 --- a/spec/system/consumer/split_checkout_spec.rb +++ b/spec/system/consumer/split_checkout_spec.rb @@ -758,8 +758,8 @@ describe "As a consumer, I want to checkout my order" do click_button("Apply") expect(page).to have_content( - "Your voucher value is more than your order. " \ - "By using this voucher you are forfeiting the remaining value." + "Note: if your order total is less than your voucher " \ + "you may not be able to spend the remaining value." ) end end