Creating E2E test assertions
So far in our "add item to cart" test we've instructed Nightwatch to open the home page and click the first item summary. This action should result in the browser then navigating to the item page.
It'd be a good idea to now add an assertion confirming that we've landed on the item page.
Nightwatch offers a built-in assertion library that can be accessed on the browser object.