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.
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.
Click to load comments...