Last active
August 29, 2015 14:02
-
-
Save robustdj/92a3fd25b36eb6caf24e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| it 'shows items if there are pins matching current filter', -> | |
| stubDefaultScheduledPins() | |
| visit '/schedule' | |
| Ember.Test.registerWaiter -> | |
| find("#schedule .pins .pin-wrapper").length > 0 | |
| wait().then -> | |
| findAllScheduledPinElements().length.should.be.above 0 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@VasMan I was able to get this spec to pass by using
Ember.Test.registerWaiter()which will forcewait()to wait until the condition is true. It's not the prettiest solution but it passes. Hopefully using theEmber.Test.registerWaiterfunction helps you in your other tests.