From 53beae421ba2496d3641b41ee16c55ddc53ab7bc Mon Sep 17 00:00:00 2001 From: Sean Choi Date: Thu, 9 Jan 2025 08:52:27 -0700 Subject: [PATCH 1/2] adding save today on ctaTextOption --- libs/blocks/ost/ctaTextOption.js | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/blocks/ost/ctaTextOption.js b/libs/blocks/ost/ctaTextOption.js index 23dc858cb0..7d7c907845 100644 --- a/libs/blocks/ost/ctaTextOption.js +++ b/libs/blocks/ost/ctaTextOption.js @@ -13,6 +13,7 @@ const ctaTextOption = { { id: 'take-the-quiz', name: 'Take the quiz' }, { id: 'see-more', name: 'See more' }, { id: 'upgrade-now', name: 'Upgrade now' }, + { id: 'save-today', name: 'Save today' }, ], getDefaultText() { From 2b762cfca023f3686946bc075b47b5bb1a94d5d5 Mon Sep 17 00:00:00 2001 From: Sean Choi Date: Fri, 10 Jan 2025 04:45:51 -0700 Subject: [PATCH 2/2] Update the unit test. --- test/blocks/ost/textOption.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/blocks/ost/textOption.test.js b/test/blocks/ost/textOption.test.js index c1de3a4bd3..a13c65ba24 100644 --- a/test/blocks/ost/textOption.test.js +++ b/test/blocks/ost/textOption.test.js @@ -21,7 +21,8 @@ describe('test ctaTextOption', () => { { id: 'change-plan-team-payment', name: 'Change Plan Team Payment' }, { id: 'take-the-quiz', name: 'Take the quiz' }, { id: 'see-more', name: 'See more' }, - { id: 'upgrade-now', name: 'Upgrade now' }]; + { id: 'upgrade-now', name: 'Upgrade now' }, + { id: 'save-today', name: 'Save today' }]; const texts = ctaTextOption.getTexts(); expect(EXPECTED_TEXTS).to.deep.equal(texts); });