Summary
In this chapter, we learned how to classify tests in Cypress by understanding what passing, failing, and skipped tests mean and how Cypress views and represents tests in the test runner and command log. We also learned about the structure of the test file and the acceptable file extensions for Cypress tests. We then wrote our first practical tests, which tested that a Todo application can add, delete, and mark a Todo as completed. The highlight of this chapter was learning how Cypress watches for file changes and how we can carry out our assertions in Cypress either by explicitly asserting our test subjects or implicitly asserting them. By completing this chapter, you know how to write a basic test in Cypress by working with elements and understanding the assertions that are available. In the next chapter, we will learn how to debug running tests in Cypress and the tools that we can use for that purpose.