Summary
Throughout this chapter, we’ve looked at leveraging Cypress to test Vue.js applications E2E. E2E tests in general are useful to give us a high level of confidence that tested flows will work as expected, as opposed to unit or integration tests, which validate that our code works as expected at a much lower overhead.
We’ve seen how to use Cypress to inspect, interact with, and assert against a UI. We’ve also shown how Cypress’ default wait/retry functionality is a great advantage when writing robust tests. We leveraged Cypress’ HTTP interception library to stub out HTTP requests and make tests more predictable and faster.
Finally, we looked at how to set up visual regression testing with Cypress. In the next chapter, we’ll look at how to deploy a Vue.js application to the web.