Skip to content

Commit fbc1c78

Browse files
authored
@W-17572026: Fix failing checkout test (#2195)
Fix failing checkout tests
1 parent 50c0f74 commit fbc1c78

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/template-retail-react-app/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
## v5.1.0-dev (TBD)
22

3+
- Fixed failing checkout tests [#2195](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2195)
34
- [BUG] Fixed "getCheckboxProps is not a function" when rendering checkout page in generated app.[#2140](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2140)
4-
- Replace transfer basket call with merge basket on checkout [#2138])(https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2138)
5+
- Replace transfer basket call with merge basket on checkout [#2138](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2138)
56

67
### Accessibility Improvements
78
- [a11y] Fix LinkList component to follow a11y practise [#2098])(https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2098)

packages/template-retail-react-app/app/pages/checkout/index.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ test('Can proceed through checkout steps as guest', async () => {
394394
// Fill out credit card payment form
395395
await user.type(screen.getByLabelText(/card number/i), '4111111111111111')
396396
await user.type(screen.getByLabelText(/name on card/i), 'Testy McTester')
397-
await user.type(screen.getByLabelText(/expiration date/i), '1224')
397+
await user.type(screen.getByLabelText(/expiration date/i), '1240')
398398
await user.type(screen.getByLabelText(/^security code$/i /* not "security code info" */), '123')
399399

400400
// Same as shipping checkbox selected by default
@@ -485,7 +485,7 @@ test('Can proceed through checkout as registered customer', async () => {
485485
// (we no longer have saved payment methods)
486486
await user.type(screen.getByLabelText(/card number/i), '4111111111111111')
487487
await user.type(screen.getByLabelText(/name on card/i), 'Testy McTester')
488-
await user.type(screen.getByLabelText(/expiration date/i), '1224')
488+
await user.type(screen.getByLabelText(/expiration date/i), '1240')
489489
await user.type(screen.getByLabelText(/^security code$/i /* not "security code info" */), '123')
490490

491491
// Same as shipping checkbox selected by default

0 commit comments

Comments
 (0)