From 8fe0cc19987456b93494c4efbd9722ffe7870274 Mon Sep 17 00:00:00 2001 From: nicholas Date: Fri, 22 Nov 2024 10:59:00 +0100 Subject: [PATCH] Exclude tests for safari --- .../ui/card/binLookup/panLength/panLength.focus.kcp.spec.ts | 4 +++- .../card/binLookup/panLength/panLength.focus.regular.spec.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/e2e-playwright/tests/ui/card/binLookup/panLength/panLength.focus.kcp.spec.ts b/packages/e2e-playwright/tests/ui/card/binLookup/panLength/panLength.focus.kcp.spec.ts index cc139dd898..0a93ab4997 100644 --- a/packages/e2e-playwright/tests/ui/card/binLookup/panLength/panLength.focus.kcp.spec.ts +++ b/packages/e2e-playwright/tests/ui/card/binLookup/panLength/panLength.focus.kcp.spec.ts @@ -32,7 +32,9 @@ test.describe('Test how Card Component handles binLookup returning a panLength p await expect(cardWithKCP.taxNumberInput).toBeFocused(); }); - test('#2 Paste non KCP PAN and see focus move to date field', async ({ cardWithKCP, page }) => { + test('#2 Paste non KCP PAN and see focus move to date field', async ({ cardWithKCP, page, browserName }) => { + test.skip(browserName === 'webkit', 'This test is not run for Safari because it always fails on the CI due to the "pasting"'); + await cardWithKCP.goto(getStoryUrl({ baseUrl: URL_MAP.card, componentConfig })); await cardWithKCP.isComponentVisible(); diff --git a/packages/e2e-playwright/tests/ui/card/binLookup/panLength/panLength.focus.regular.spec.ts b/packages/e2e-playwright/tests/ui/card/binLookup/panLength/panLength.focus.regular.spec.ts index abd5b9bc01..3b80c2719f 100644 --- a/packages/e2e-playwright/tests/ui/card/binLookup/panLength/panLength.focus.regular.spec.ts +++ b/packages/e2e-playwright/tests/ui/card/binLookup/panLength/panLength.focus.regular.spec.ts @@ -117,7 +117,9 @@ test.describe('Test Card, & binLookup w. panLength property', () => { await expect(card.expiryDateInput).toBeFocused(); }); - test('#6 Fill out PAN by **pasting** number & see that that focus moves to expiryDate', async ({ card, page }) => { + test('#6 Fill out PAN by **pasting** number & see that that focus moves to expiryDate', async ({ card, page, browserName }) => { + test.skip(browserName === 'webkit', 'This test is not run for Safari because it always fails on the CI due to the "pasting"'); + await card.goto(URL_MAP.card); await card.isComponentVisible();