I am trying to write a simple Ember integration test and continue to get the frustrating run loop error despite using Ember.run. I’ve had a nightmare of a time trying to get this to work, if anyone could help me I’d be so grateful. Specifically, I can see the test sign in and begin loading the next page (as it should), but as soon as the test finishes I get that error. This is regarding the second test, the first passes (as nothing is async I believe).

It may seem annoying at first, but it makes sense once you understand what Ember has been doing for you behind the scenes with the Autorun. Ember has been wrapping your Async code automagically. In testing, that is disabled. It’s better to learn more about the run loop, and manage it yourself to make you app testable.

I have it confirmed from Toran Billups who gave a talk on testing in Ember at Ember Conf 2015. You do need to wrap your app code with the Ember run like I had posted. You can find libraries like one at his repo that abstracts it.