lathonez / clicker

Ionic 2 + @angular/cli Seed Project : Angular2 + Typescript + Karma + Protractor + Travis
http://lathonez.com/2018/ionic-2-unit-testing/
MIT License
430 stars 137 forks source link

Setup insufficient to test apps dependent on external APIs #289

Open kalexmills opened 5 years ago

kalexmills commented 5 years ago

The protractor setup included here runs via Angular, and thus bypasses Ionic's proxy configuration which is typically used by Ionic apps running in the browser to avoid CORS issues.

A fix would be to start ionic serve in protractor's beforeLaunch and run protractor concurrently, then cleanup ionic after protractor is done.