diff --git a/packages/api-plugin-promotions/src/handlers/applyPromotions.js b/packages/api-plugin-promotions/src/handlers/applyPromotions.js index 8cbb755751..ff1d6f8b25 100644 --- a/packages/api-plugin-promotions/src/handlers/applyPromotions.js +++ b/packages/api-plugin-promotions/src/handlers/applyPromotions.js @@ -135,9 +135,10 @@ export default async function applyPromotions(context, cart, options = { skipTem if (!promotion.enabled) { if (canAddToCartMessages(cart, promotion)) { enhancedCart.messages.push(createCartMessage({ - title: "The promotion no longer available", + title: "Promotion is no longer available", subject: "promotion", severity: "warning", + requiresReadAcknowledgement: true, metaFields: { promotionId: promotion._id } diff --git a/packages/api-plugin-promotions/src/handlers/applyPromotions.test.js b/packages/api-plugin-promotions/src/handlers/applyPromotions.test.js index 4206337377..c1e804f1e3 100644 --- a/packages/api-plugin-promotions/src/handlers/applyPromotions.test.js +++ b/packages/api-plugin-promotions/src/handlers/applyPromotions.test.js @@ -159,7 +159,7 @@ describe("cart message", () => { await applyPromotions(mockContext, cart); - expect(cart.messages[0].title).toEqual("The promotion no longer available"); + expect(cart.messages[0].title).toEqual("Promotion is no longer available"); }); test("should have promotion is not eligible message when explicit promotion is not eligible", async () => {