Skip to content

Commit

Permalink
@W-17572026: Fix failing checkout test (#2195)
Browse files Browse the repository at this point in the history
Fix failing checkout tests
  • Loading branch information
unandyala authored Jan 10, 2025
1 parent 50c0f74 commit fbc1c78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/template-retail-react-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
## v5.1.0-dev (TBD)

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

### Accessibility Improvements
- [a11y] Fix LinkList component to follow a11y practise [#2098])(https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2098)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ test('Can proceed through checkout steps as guest', async () => {
// Fill out credit card payment form
await user.type(screen.getByLabelText(/card number/i), '4111111111111111')
await user.type(screen.getByLabelText(/name on card/i), 'Testy McTester')
await user.type(screen.getByLabelText(/expiration date/i), '1224')
await user.type(screen.getByLabelText(/expiration date/i), '1240')
await user.type(screen.getByLabelText(/^security code$/i /* not "security code info" */), '123')

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

// Same as shipping checkbox selected by default
Expand Down

0 comments on commit fbc1c78

Please sign in to comment.