The video for this lesson is currently being updated, please read the transcript instead.

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.

Assertion

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.

To view the complete lesson you'll need to login or join this course.


Click to load comments...