AshCoolman / angular2-go-protractor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Angular 2 Go with Protractor !

Simple starter example that gets you going with Angular 2 and Protractor in minutes, based on the angular2-go seed by John Papa.

Run the application

  1. Run npm install

  2. Run the TypeScript compiler and watch for changes npm run dev

  3. Open 2nd terminal and launch the app in the browser npm start

Run the e2e tests

  1. Ensure the application is running (npm start)

  2. Open a third terminal and run the tests npm run e2e

The tests are run directly against Chrome, so no need to fire up a Selenium Standalone Server instance. Check protractor.conf.js for comments about ng2-specific configuration.

Keep in mind that currently not all locator strategies are supported for ng2 apps. Things like by.model() or by.binding() are not working just yet. Check the Protractor changelog for new releases

##Notes

This sample intentionally uses precise versions of Angular 2 and SystemJS so new versions do not break it. I will update these as Angular 2 moves out of Alpha.

This uses the Path Routing Strategy (HTML5 Mode in Angular 1). This is ideal, however since this demo strives for a simple server using live-server, if you refresh the browser when on a deep link (a named route), you will get a 404. Simply go back to the root /.

About


Languages

Language:TypeScript 81.9%Language:JavaScript 8.8%Language:HTML 7.1%Language:CSS 2.3%