How would you delete the fetch call when there is no visit happening but the fetch call is either a webhook or an event. For example we have a form page where new users type in their email. Once the email is typed in and the user has clicked on the next field in the form a fetch call is made to check if the email is already in use. How do I mock that? I cannot do cy.visit. What is the alternative? Thank you for your help and great article
Software Engineer | 10+ years building SaaS platforms for startups
Building godeploy.app -> ship unlimited static sites or single page apps. 1 command deploys.
How would you delete the fetch call when there is no visit happening but the fetch call is either a webhook or an event. For example we have a form page where new users type in their email. Once the email is typed in and the user has clicked on the next field in the form a fetch call is made to check if the email is already in use. How do I mock that? I cannot do cy.visit. What is the alternative? Thank you for your help and great article
No problem Shiva.
I suspect you are navigating to the form page somehow via cypress, what are you using to do that?