Skip to content

An app that uses both polymer and angular together with the purpose of testing them using protractor.

Notifications You must be signed in to change notification settings

dllndv/polymer-angular-hybrid-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

polymer-angular-hybrid-testing

This is a test app using both polymer and angular to see how we can test both with Protractor. You must have node and bower installed in order to run, and protractor in order to run the tests.

It's built with kd7yva's polymer-startup app, which can be found here along with instructions on how to run the app.

Also most of the code I used to make the fancy Polymer and Angular bits came from this article by Josh Crowther.

Getting Started:

git clone https://github.com/dllndv/polymer-angular-hybrid-testing.git
cd polymer-angular-hybrid-testing
npm install

To run in dev mode:

gulp dev

This builds the app and deploys with gulp, and enables browser-sync. To stop, use ctrl-c.

To run in prod mode:

npm start

For more instructions on how the project is structured, and how to add more web components, see kd7yva's repo for the polymer-startup app.

Running Tests:

The default location for the protractor tests is test/protractor/spec.js To run the tests as they are, make sure protractor is installed, your webdriver-manager is running, and then from the root directory:

protractor test/protractor/conf.js

And there you go! You should see the tests run in a new window, and the shadow dom being pierced by protractor. Feel free to add more web components, more angular things and experiment with how they work together!

About

An app that uses both polymer and angular together with the purpose of testing them using protractor.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published