I'm trying to write some tests with cypress and fixtures on my ssr next.js app that connects to restful api using axios. But I'm having trouble intercepting the restful apis using cy.intercept()
because cypress can not track the requests that are sent in ssr and cy.intercept()
only works on requests that cypress can track. Is there any packages that can help me change the responses coming from restful api?
vendredi 27 novembre 2020
intercept restful API with cypress in a ssr next.js project using axios
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire