Skip to content

Commit 8554bb4

Browse files
committed
fix test
1 parent 0ab7146 commit 8554bb4

File tree

1 file changed

+2
-4
lines changed
  • packages/template-retail-react-app/app/pages/checkout

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,7 @@ test('Renders skeleton until customer and basket are loaded', () => {
139139
expect(queryByTestId('sf-checkout-container')).not.toBeInTheDocument()
140140
})
141141

142-
// TODO: remove skip
143-
// TESTING
144-
test.skip('Can proceed through checkout steps as guest', async () => {
142+
test('Can proceed through checkout steps as guest', async () => {
145143
// Keep a *deep* copy of the initial mocked basket. Our mocked fetch responses will continuously
146144
// update this object, which essentially mimics a saved basket on the backend.
147145
let currentBasket = JSON.parse(JSON.stringify(ocapiBasketWithItem))
@@ -308,7 +306,7 @@ test.skip('Can proceed through checkout steps as guest', async () => {
308306
// Fill out credit card payment form
309307
user.type(screen.getByLabelText(/card number/i), '4111111111111111')
310308
user.type(screen.getByLabelText(/name on card/i), 'Testy McTester')
311-
user.type(screen.getByLabelText(/expiration date/i), '1224')
309+
user.type(screen.getByLabelText(/expiration date/i), '1240')
312310
user.type(screen.getByLabelText(/security code/i), '123')
313311

314312
// Same as shipping checkbox selected by default

0 commit comments

Comments
 (0)