mardi 26 janvier 2021

Cypress - cost is not updated after an API call is intercepted

The cypress test is for a coupon, after I enter a coupon then the price should be displayed accordingly. When coupon is applied only 'PUT' method is made, the call is intercepted but the price is not updated on the page.

paymentPage = navigateAngular(IntakePaymentPage);
paymentPage.enterCouponCode('FREE');
cy.interceptSdk('PUT', 'engagement/*/cost', 'costFreeCoupon.json');

Aucun commentaire:

Enregistrer un commentaire