Skip to content

Commit

Permalink
Deleting old, unnecessary files
Browse files Browse the repository at this point in the history
  • Loading branch information
sponglord committed Jan 27, 2025
1 parent f303426 commit f7826b8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 142 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
import { test, expect } from '../../../../../fixtures/card.fixture';
import { MAESTRO_CARD, BCMC_CARD } from '../../../../utils/constants';
import { URL_MAP } from '../../../../../fixtures/URL_MAP';
import { getStoryUrl } from '../../../../utils/getStoryUrl';

import LANG from '../../../../../../server/translations/en-US.json';
const CVC_LABEL = LANG['creditCard.securityCode.label'];
const CVC_LABEL_OPTIONAL = LANG['creditCard.securityCode.label.optional'];

const componentConfig = {
brands: ['mc', 'visa', 'amex', 'maestro', 'bcmc']
};

test.describe('Card - testing /binLookup as it affects the cvc field', () => {
test('#1 Should fill in a PAN that will lead to cvc being hidden', async ({ card, page }) => {
// Regular card
await card.goto(URL_MAP.card);
await card.goto(getStoryUrl({ baseUrl: URL_MAP.card, componentConfig }));

// Visible & required cvc field
await expect(card.cvcField).toBeVisible();
Expand All @@ -33,7 +38,7 @@ test.describe('Card - testing /binLookup as it affects the cvc field', () => {

test('#2 Should fill in a PAN that will lead to cvc being optional', async ({ card, page }) => {
// Regular card
await card.goto(URL_MAP.card);
await card.goto(getStoryUrl({ baseUrl: URL_MAP.card, componentConfig }));

// PAN that will trigger /binLookup with cvcPolicy:"optional"
await card.typeCardNumber(MAESTRO_CARD);
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit f7826b8

Please sign in to comment.