From 7b58c2dd5e2641d62914bbb70684ab194083a2f7 Mon Sep 17 00:00:00 2001 From: Axel Cureno Basurto Date: Tue, 18 Feb 2025 10:02:38 -0800 Subject: [PATCH] MWPW-166740: Add ABM label CCD card [NALA] (#3660) --- nala/features/mas/ccd/masccd.spec.js | 1 + nala/features/mas/ccd/masccd.test.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/nala/features/mas/ccd/masccd.spec.js b/nala/features/mas/ccd/masccd.spec.js index 4797c68d83..5ef50055cd 100644 --- a/nala/features/mas/ccd/masccd.spec.js +++ b/nala/features/mas/ccd/masccd.spec.js @@ -32,6 +32,7 @@ module.exports = { description: 'Save over 65% on Photoshop and more than 20 apps for the first year. Plus get the first month on us when purchase by Sep 2', price: 'US$19.99/mo', strikethroughPrice: 'US$59.99/mo', + abmLabel: 'Annual, paid monthly', cta: 'Buy now', offerid: '951DCCB08194F40B9C79951675547DF5', linkText: 'See terms', diff --git a/nala/features/mas/ccd/masccd.test.js b/nala/features/mas/ccd/masccd.test.js index 678d74b3c5..2f6ece89f6 100644 --- a/nala/features/mas/ccd/masccd.test.js +++ b/nala/features/mas/ccd/masccd.test.js @@ -83,7 +83,7 @@ test.describe('CCD Merchcard feature test suite', () => { }); }); - // @MAS-CCD-suggested-strikethrough : CCD suggested card with eyebrow, legal link and strikethrough price + // @MAS-CCD-suggested-strikethrough : CCD suggested card with eyebrow, legal link, strikethrough price and ABM price label test(`${features[1].name},${features[1].tags}`, async ({ page, baseURL }) => { const testPage = `${baseURL}${features[1].path}${miloLibs}`; const { data } = features[1]; @@ -113,6 +113,7 @@ test.describe('CCD Merchcard feature test suite', () => { await expect(await CCD.getCardPrice(data.id, 'suggested')).toBeVisible(); await expect(await CCD.getCardPrice(data.id, 'suggested')).toContainText(data.price); await expect(await CCD.getCardPrice(data.id, 'suggested')).toContainText(data.strikethroughPrice); + await expect(await CCD.getCardPrice(data.id, 'suggested')).toContainText(data.abmLabel); await expect(await CCD.getCardCTA(data.id, 'suggested')).toBeVisible(); await expect(await CCD.getCardCTA(data.id, 'suggested')).toHaveAttribute('class', /primary/); await expect(await CCD.getCardCTA(data.id, 'suggested')).toContainText(data.cta);