Skip to content

Instantly share code, notes, and snippets.

@jennifer-shehane
Created July 9, 2019 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jennifer-shehane/e9036fb878d080a975a4ccc745475d70 to your computer and use it in GitHub Desktop.
Save jennifer-shehane/e9036fb878d080a975a4ccc745475d70 to your computer and use it in GitHub Desktop.
cy.server();
cy
.route({ method: 'GET', url: '/api/users/*/attributes/checkout-shipping-details' })
.as('deleteCartReq1')
.route({ method: 'GET', url: '/api/countries' }).as('deleteCartReq2')
.route({ method: 'GET', url: '/api/currencies' }).as('deleteCartReq3')
.route({ method: 'GET', url: '/api/users/*/wishlist/saved?limit=100' }).as('deleteCartReq4')
.route({ method: 'GET', url: '/api/users/*/cart/config' }).as('deleteCartReq5')
.route({ method: 'GET', url: '/api/users/*/cart/estimate' }).as('deleteCartReq6')
cy.wait(
[
'@deleteCartReq1',
'@deleteCartReq2',
'@deleteCartReq3',
'@deleteCartReq4',
'@deleteCartReq5',
'@deleteCartReq6'
],
{ timeout: 20000 }
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment