Timing errors with Angular Protractor e2e testing

I had this nasty error in my Protractor tests: Error while waiting for Protractor to sync with the page: {} My tests were kicked off too early and didn’t seem to wait for the angular library to load. I added the following solution to my specs, but was far from confident, because other timing issues …