On a website selling products, Henry is testing the shopping cart feature. An API call is made to update the cart information whenever a user adds an item. In order to verify that the cart has been appropriately updated, Henry wishes to stub this API request. What Cypress command must be used by Henry in order to verify the API call?

cy.expect()

cy.verifyRequest()

cy.route()

cy.intercept()

Verified Answer
Correct Option - d

To get all Infosys Certified Angular Expert Exam questions Join Telegram Group https://bit.ly/infy_premium_group

Telegram

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in

Updated on Mon, 2 Jun 2025