It doesn’t matter how many business books you read or how many successful pastry chefs you talk to—to open your own business, you have to roll up your sleeves and put in the work. Learning about the “good principles” is useful, but without baking and talking to customers yourself, you can’t succeed.
Also in testing, learning about the different tools you can use and understanding their trade-offs is helpful, but, without writing tests yourself, you won’t know how to build reliable software in less time.
In this chapter, you’ll learn how to write UI-based end-to-end tests by testing the application you built in chapter 6. Throughout this chapter, I’ll use Cypress to demonstrate how you can test that application and which advanced techniques you can use to improve your tests’ efficacy.
NOTE
You can find the code for these tests as well as the code for the server and client under test in this book’s GitHub repository at https://github.com/lucasfcosta/testing-javascript-applications.