How does Protractor wait for angular?
Protractor will wait until the Angular Zone settles before launching Angular apps. As a result, long-running async operations will prevent your test from continuing. Run these tasks outside of the Angular zone to get around this.