-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose Ember.Test.checkWaiters as public API #13603
Comments
I am in favor of exposing the new |
Yeap. This definitely is responsible for the remaining test failures we're seeing with ember-2.7.0-beta.1. |
@workmanw - How so? You were using |
@rwjblue No. And perhaps I misunderstood and it's a slightly different issue that needs filed. But in my integration test, when I call So on first look I thought it was related to ember-test-helpers (and it might still be). But this line here: https://github.com/switchfly/ember-test-helpers/blob/v0.5.23/lib/ember-test-helpers/wait.js#L46 . When debugging in my test suite, I thought it was related to this issue ... I think I jumped to conclusion because of the regression tag and talk of waiting. Perhaps this is another issue. Perhaps related to the fact I'm using an older version of |
This is most likely due to emberjs/ember-test-helpers#161 (comment). Using ember-test-helpers < 0.5.26 with Ember 2.7.0-beta.1 will not be able to wait for However, if we make |
@rwjblue So looking more closely it does seem this is related to: #13440. Because the And I'm stuck on the older version of ember-test-helpers because of: emberjs/ember-test-helpers#161 . So that leaves me in a pickle I guess. |
Yep. We'll get it squared away. I'll try to poke at this more first thing tomorrow morning. |
Happy to help do any of the leg work here. Let me know if there is something I can dive into. |
Submitted #13716 to address this. |
@rwjblue Awesome. Thank you! |
#13440 landed a big refactor of
Ember.Test
. Among the changes was to removeEmber.Test.waiters
💁 from the exposed API.waiters
leaked the internal implementation of the waiter queue, and was not explicitly flagged as@public
.In updating
ember-test-helpers
@rwjblue and I found thatEmber.Test.waiters
is used by that library to supportwait()
✋ in integration tests. See: https://github.com/switchfly/ember-test-helpers/blob/6207a7b6af9214ef47a79f52d9b240bb95e6a728/lib/ember-test-helpers/wait.js#L46Though we're going to ship a hacky intimate-API workaround for the 2.7 beta (master at this writing), it seems like
checkWaiters
should be made public API to support this use case. Just something that was missed whenEmber.Test.waiters
was removed. Thoughts @krisselden?And as a point of order, no, I didn't write an RFC as I do not believe this change would represent "substantial" change to Ember. IMO we're simply recovering from the mistake of dropping
waiters
, which was not documented as public but was actually used. ✌️The text was updated successfully, but these errors were encountered: