Skip to content

Commit

Permalink
chore: remove snapshot tests for standalone cvv element as they are d…
Browse files Browse the repository at this point in the history
…upes
  • Loading branch information
cbarton committed Oct 3, 2024
1 parent 2c337a7 commit 898a30a
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions test/e2e/display.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,6 @@ maybeDescribe('Display', () => {
assertVisualRegressionThreshold(await browser.checkElement(await $('.test-bed'), 'elements/distinct-elements'));
});
});

describe('distinct CardCvvElement', async function () {
it('matches CardCvvElement baseline', async function () {
await createElement(ELEMENT_TYPES.CardCvvElement, { style: { fontFamily: 'Pacifico' } });
await fillCvvElement();
await clickFirstName();

assertVisualRegressionThreshold(await browser.checkElement(await $('.test-bed'), 'elements/cvv-element'));
});
});
});

const hostedFieldOpts = { fields: { all: { style: { fontFamily: 'Pacifico' } } } };
Expand All @@ -78,17 +68,6 @@ maybeDescribe('Display', () => {
assertVisualRegressionThreshold(await browser.checkElement(await $('.test-bed'), 'hosted-fields/distinct-fields'));
});
});

describe('when using a cvv Hosted Field', async function () {
beforeEach(init({ fixture: 'hosted-fields-cvv', opts: hostedFieldOpts }));

it('matches cvv Hosted Field baseline', async function () {
await fillCvvElement();
await clickFirstName();

assertVisualRegressionThreshold(await browser.checkElement(await $('.test-bed'), 'hosted-fields/cvv'));
});
});
});

function assertVisualRegressionThreshold (diff, threshold = 0.05) {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 898a30a

Please sign in to comment.