From 56863b221dbdfd9121189fb22303855f16d866d2 Mon Sep 17 00:00:00 2001 From: Ricardo Metring Date: Tue, 12 Dec 2023 15:40:49 -0300 Subject: [PATCH] Do not expect 3D Secure authentication for declined 3DS card (#7844) --- changelog/dev-test-ci-without-3ds1 | 4 ++++ .../e2e/specs/wcpay/shopper/shopper-checkout-failures.spec.js | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 changelog/dev-test-ci-without-3ds1 diff --git a/changelog/dev-test-ci-without-3ds1 b/changelog/dev-test-ci-without-3ds1 new file mode 100644 index 00000000000..f2d4b778788 --- /dev/null +++ b/changelog/dev-test-ci-without-3ds1 @@ -0,0 +1,4 @@ +Significance: patch +Type: dev + +Comment: Fix declined 3DS card E2E test. diff --git a/tests/e2e/specs/wcpay/shopper/shopper-checkout-failures.spec.js b/tests/e2e/specs/wcpay/shopper/shopper-checkout-failures.spec.js index 9c14db6bdbf..715732b40f9 100644 --- a/tests/e2e/specs/wcpay/shopper/shopper-checkout-failures.spec.js +++ b/tests/e2e/specs/wcpay/shopper/shopper-checkout-failures.spec.js @@ -9,7 +9,6 @@ import { shopperWCP } from '../../../utils'; import { clearCardDetails, - confirmCardAuthentication, fillCardDetails, setupProductCheckout, } from '../../../utils/payments'; @@ -145,7 +144,6 @@ describe( 'Shopper > Checkout > Failures with various cards', () => { const declinedCard = config.get( 'cards.declined-3ds' ); await fillCardDetails( page, declinedCard ); await expect( page ).toClick( '#place_order' ); - await confirmCardAuthentication( page, '3DS' ); await page.waitForSelector( 'ul.woocommerce-error' ); const declined3dsCardError = await page.$eval( 'div.woocommerce-NoticeGroup > ul.woocommerce-error',