Running the login scenario

Now that we have one test scenario entered, let's give it a whirl. In one window, start the Notes test infrastructure:

$ cd test-compose$ docker-compose up --force-rebuild

Then in another window:

$ docker exec -it userauth bashuserauth# PORT=3333 node ./users-add.jsuserauth# exit$ cd test-compare/notesui$ NOTES_HOME_URL=http://localhost:3000 mocha --no-timeouts uitest.js   Notes    Login      √ should click on login button      √ should fill in login form (72ms)      √ should return to home page (1493ms)  3 passing (3s)

The NOTES_HOME_URL variable is what the script looks for to direct the Chromium browser to use the Notes application. To run the tests, we should use Docker Compose to launch the test infrastructure, and then ensure ...

Get Node.js Web Development - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.