https://cypress.io logo
I hope I can get some advice on best practices for...
# best-practices
k
I hope I can get some advice on best practices for using Cypress for API testing. There seem to be quite a few .then() that I'm dealing with, and I'm not sure if I'm implementing cypress the right way for what I need. I also saw a GitHub API example where the response body is saved using a cy.wrap() and used in different testing blocks. Is this following best practices for API testing with Cypress? Is there any examples that someone might be able to show me with Cypress and API testing. I understand the basics of using the cy.request but my tests are getting longer than I would like for creating the data I need. TIA