🔥In this CYPRESS TUTORIAL video, you'll learn HOW to MOCK an API RESPONSE using CY.INTERCEPT with Cypress IO or INTERCEPT API CALLS with cy.intercept() method in Cypress.
Cypress server, and Cypress router are deprecated and now we can use this method.
#cypress #testing #e2e
⏰Timestamps:
00:00 - Introduction
00:25 - Test Scenario
01:10 - DEMO Application
02:00 - Describe in Cypress
02:25 - IT in Cypress
02:48 - Cypress VISIT
03:00 - Assertions in CYPRESS using AND
07:00 - GET the response format and save it in a FIXTURE
10:52 - INTERCEPT a REQUEST with Cypress io (Mocking using a fixture)
18:21 - INTERCEPT a REQUEST with Cypress io (Mocking using an Object)
4 июл 2024