diff --git a/tests/e2e/test-data/default.json b/tests/e2e/test-data/default.json index 3e3c6308e..70521fd46 100644 --- a/tests/e2e/test-data/default.json +++ b/tests/e2e/test-data/default.json @@ -152,6 +152,8 @@ "cvc": "626", "label": "Visa ending in 0002", "error": [ + "The card was declined.", + "Your card was declined.", "The card has been declined.", "Your card has been declined." ] @@ -190,7 +192,7 @@ }, "cvc": "626", "label": "Visa ending in 0069", - "error": [ "Your card is expired." ] + "error": [ "The card has expired.", "Your card has expired.", "Your card is expired." ] }, "declined-cvc": { "number": "4000000000000127", @@ -201,7 +203,9 @@ "cvc": "626", "label": "Visa ending in 0127", "error": [ - "Your card’s CVC is incorrect." + "The card's security code is incorrect.", + "Your card's security code is incorrect.", + "Your card.s CVC is incorrect." ] }, "declined-processing": { @@ -214,7 +218,7 @@ "label": "Visa ending in 0119", "error": [ "An error occurred while processing the card.", - "An error occurred while processing your card. Try again." + "An error occurred while processing your card." ] }, "declined-3ds": { diff --git a/tests/e2e/tests/subscriptions/subscription-renewal.spec.js b/tests/e2e/tests/subscriptions/subscription-renewal.spec.js index 369925250..86c10fc61 100644 --- a/tests/e2e/tests/subscriptions/subscription-renewal.spec.js +++ b/tests/e2e/tests/subscriptions/subscription-renewal.spec.js @@ -86,7 +86,9 @@ test( 'customer can renew a subscription @smoke @subscriptions', async ( { await page.click( 'input[id^="radio-control-wc-payment-method-saved-tokens-"]' ); - await page.click( 'text=Renew subscription' ); + await page + .locator( 'text=Renew subscription' ) + .dispatchEvent( 'click' ); await expect( page.locator( 'h1.entry-title' ) ).toHaveText( 'Order received' );