End to End Testing of Angular Apps
Pre-requisites:
- Install Protractor
- Read the documenation above!!!
- Git your local development env (Fig) up and running before running any test
- Some of the the tests (i.e. admissions), require that you have multi-tenant set up on your local machine, see the notes here about getting multi-tenant supported on your local machine.
Running a test:
- Navigage to the
static_files/app/tests
dir -
Start webDriver server:
webdriver-manager start
-
Run the tests with protractor:
protractor conf.js
-
Optionally run a particular test suite:
protractor conf.js --suite admissions
conf.js
rootElement
: This will probably be deprecated soon, pending a re-write of the angular app. For pages without a "ng-view" you have to specify a root element