While this project is fully functional, the dependencies are no longer up to date. You are still welcome to explore, learn, and use the code provided here.
Modus is dedicated to supporting the community with innovative ideas, best-practice patterns, and inspiring open source solutions. Check out the latest Modus Labs projects.
Demo for NoVAJS talk on getting started with Protractor in Angular 2
Clone the repo and from the project root type:
npm install
node_modules/protractor/bin/webdriver-manager update
This will install all the necessary dependencies and update chromedriver. Afterwards, start the Angular2 dev server by typing:
npm run start
This will start the demo application on localhost:8080. You can confirm by navigating to this address in your browser.
You should see something like this:
Running tests is easy. From the root of the project run:
npm run tests
This will run all spec files defined in tests/protractor.conf.js. Feel free to fork and write your own spec files!
Upon running tests, your output should look something like this:
NOTE: You can remove the sleeps from demo-spec-1.js if you'd like that spec to run faster. Sleeps are in place for demo only.


