Skip to content

Commit

Permalink
Update expected error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
annemirasol committed Jan 7, 2025
1 parent 23c189a commit 9ee8028
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 7 additions & 3 deletions tests/e2e/test-data/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
]
Expand Down Expand Up @@ -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",
Expand All @@ -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": {
Expand All @@ -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": {
Expand Down
4 changes: 3 additions & 1 deletion tests/e2e/tests/subscriptions/subscription-renewal.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
Expand Down

0 comments on commit 9ee8028

Please sign in to comment.