Skip to content

AshCoolman/angular2-go-protractor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 81.8%
  • JavaScript 8.8%
  • HTML 7.1%
  • CSS 2.3%