This helper is now built-in:
Wait for your application to be in a specific state before continuing the test runner.
Useful for certain jquery plugins that take time to load. You can now avoid race conditions with a hard-coded wait time.
Add this line to
tests/helpers/start-app.js in your app:
Now you can do something like:
You can define your own waiters. A waiter is a function that will continuously run until it returns true. Once the waiter returns true your test will continue running. It supports Promises.