While End-End tests can be a great way to test out your applications but realistically, we need to follow the testing pyramid more. Moving more tests away from end-end to component testing will make your test suite faster. Addition of faster component tests while keeping end-to-end tests limited is a way out, especially when we start using reusable components in frontend frameworks.
In this session, I will present how adding smaller and faster component tests would be beneficial / We can use the same Nightwatch APIs to write them so there is no need to learn extra steps. While most of the test frameworks use JSDOM to render components, some of the load all the files on the test renderer page. Nightwatch aims to provide a combination of both approaches. By the end of the talk, you will know how to test React components on Real browsers with Nightwatch along with visual assertions.