From 027d44a0a7fa6eed7336082810d1a830b929b8c3 Mon Sep 17 00:00:00 2001 From: Kara Erickson Date: Mon, 4 Apr 2016 13:15:05 -0700 Subject: [PATCH] docs(e2e): add env setup instructions for e2e --- DEV_ENVIRONMENT.md | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/DEV_ENVIRONMENT.md b/DEV_ENVIRONMENT.md index ede5a445598..57065bfba81 100644 --- a/DEV_ENVIRONMENT.md +++ b/DEV_ENVIRONMENT.md @@ -17,6 +17,31 @@ After the changes rebuild, the browser currently needs to be manually refreshed. To run unit tests, run `npm test`. -Running e2e tests: -Running benchmarks: -Running screenshot diff tests: +###Running e2e tests: + +To prepare your environment, you'll need to install protractor and selenium. + +1. Globally install protractor: + +``` +npm install -g protractor +``` + +2. Install the correct selenium version with webdriver-manager (this comes with protractor): + +``` +webdriver-manager update +``` + +When running the tests: + +1. Spin up a local server with `ng-serve`. + +2. Run tests with: + +``` +protractor test/protractor.conf.js +``` + +Running benchmarks: not yet implemented +Running screenshot diff tests: not yet implemented