Skip to content

Commit

Permalink
MWPW-166740: Add ABM label CCD card [NALA] (#3660)
Browse files Browse the repository at this point in the history
  • Loading branch information
Axelcureno authored Feb 18, 2025
1 parent f5b6be1 commit 7b58c2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions nala/features/mas/ccd/masccd.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 2 additions & 1 deletion nala/features/mas/ccd/masccd.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 7b58c2d

Please sign in to comment.