Running the tests

Now, we are ready to run the tests:

$ yarn run test:e2e

This will run the ./scripts/e2e.test.sh script, which will build the project using Webpack (this may take some time). Then, a Google Chrome browser will pop up, and you'll see the input fields being automatically populated with the text we specified. After Selenium has performed all actions required, the driver.quit() method call in our After hook will close the browser, and the results will be displayed in our terminal.:

......1 scenario (1 passed)4 steps (4 passed)0m02.663s

Get Building Enterprise JavaScript Applications 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.