Skip to content

Commit

Permalink
chore: improve multi-d e2e tests (#19958)
Browse files Browse the repository at this point in the history
Co-authored-by: Hak Woo Kim <[email protected]>
  • Loading branch information
kpawelczak and kimhw0630 authored Feb 5, 2025
1 parent 5f79887 commit 98606c7
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,24 +131,24 @@ export function testCheckoutMultiDAsGuestAndVerifyCart() {
);
guestCheckout.createAccountFromGuest(multiDUser.password);

const deliveryAddressPage = checkout.waitForPage(
'/checkout/delivery-address',
'getDeliveryAddressPage'
);

searchForProduct(multiDBaseProduct.code);

goToMultiDProductFromPLP();

selectVariant('Blue');

cy.intercept(
'GET',
`${Cypress.env('OCC_PREFIX')}/${Cypress.env(
'BASE_SITE'
)}/users/current/carts?fields*`
).as('carts');

checkout.addCheapProductToCartAndBeginCheckoutForSignedInCustomer(
multiDProduct
);

cy.wait(`@${deliveryAddressPage}`)
.its('response.statusCode')
.should('eq', 200);
cy.wait('@carts').its('response.statusCode').should('eq', 200);

cy.get('.cx-checkout-title').should('contain', 'Shipping Address');
cy.get('cx-mini-cart .count').contains('1');
Expand Down

0 comments on commit 98606c7

Please sign in to comment.