In this section, we will focus on writing our component end-to-end test. We will look at how we can integrate the template into our testing of components. Integrated tests are complex to write when compared to the isolated test, primarily because now we don't just want a standard component object like we created in the previous section, but we also need a component object that is integrated to the template so that both can be tested together.
The most complex thing in implementing the integrated test is the setup part, because it is here we do the initialization of our component and its dependencies.
Though complex, integrated tests provide us with some unique advantages, as follows:
- Testing the bindings, which is not possible in the isolated test. Some of the bindings may be very simple, and it may not add value to create...