Summary
In this chapter, we have concentrated on how to write tests for a real-life project. We crafted four sets of tests (fixtures) for the Redmine demo portal: log in tests, entity creation tests, entity editing tests, and entity deletion tests.
Also, we learned some useful techniques such as how to debug tests, execute custom code, assert elements, clear inputs, press keys, confirm native browser alerts, upload files, and chain element selectors. All of these lessons can be applied to pretty much any other web project.
As our set of tests in now ready, in the next chapter we will be adding setup and teardown sections to our current code to improve its structure and enhance its maintainability.