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

Registering a user

Now that we've gotten Nightwatch to find and item and go to the item's page, the next step for our current test is to add the item to the cart.

However, we can't add an item to the cart as a guest user. We'll first need to register a user and log in.

Simulation

To do this, we're going to need to tell Nightwatch to, firstly, navigate to the registration page, via this URL, then, we'll need it to fill these inputs with valid user data, and click the "Register" button.

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


Click to load comments...