Chapter 4: Building a Test Suite with TestCafe
Now, as we've been through the main concepts of TestCafe and reviewed its arsenal, let's draw a weapon and write some tests! The main goal here will be to get familiar with how to write a set of end-to-end tests (a test suite) with TestCafe. This is extremely important because the testing techniques that we will cover are universal and can be reused to write automated tests for any web project.
To sum up, this chapter will cover the following main topics:
- Creating a test.
- Debugging the tests.
- Writing the test project log in tests.
- Adding verifications to the test project.
- Adding custom code execution to the test project.
- Adding more tests.
Technical requirements
As we mentioned in Chapter 3
Get Modern Web Testing with TestCafe now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.