-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
Integration component test issues after v0.5.31 #176
Comments
I'm also seeing this, reverting back to 0.5.31 resolved this. |
From my eyes the only difference between those two selectors is that the jQuery one will select all elements that match and the Can someone create a demo repo showing the issue? |
I'll throw one together tonight |
Thank you! |
@rwjblue I'm now unable to reproduce it, I'll keep an eye out and will report back if I can reproduce+isolate it.. |
Kk. I was wondering perhaps if it was relate to Ember version and/or whether or not the component under test was tagless. |
@rwjblue this happened while upgrading from ~2.6 to 2.8. We are also on ember-mocha so unsure if that had anything to do with it. The tests that were failing with this were not tagless components, though we had test failures because of that new assertion but I consider that unrelated to this issue. |
After looking at this again, I found the issue on my app. Since the new selector only returns the first ".ember-view" it didn't match the one it expected, hence the error on the new version. Also, the reason this was only breaking the first test is that the HTML gets cleaned up after the component test is done. teardownTestElements() {
document.getElementById('ember-testing').innerHTML = '';
...
} I fixed the issue by making sure the element leaking was removed properly on ATs. Thanks for the input |
@calderas that might explain why I wasn't able to reproduce it an example app. Thanks for reporting back, I'll be sure to look for any components that are leaking elements. |
No longer an issue, thanks! |
After the v0.5.31 release, I started getting an error when running tests. The first (alphabetically) integration component test will always fail to render. Event if it's a very simple test that just renders a div it will fail, so it's consistent (in my app).
When using ember exam with multiple partitions I get the same error for different partitions.
But always just the first integration component test (or first ones when using partitions).
Tracked it down to this line:
v0.5.30...v0.5.31#diff-6131c3a14dd0889855bcf084535928fbR250
This is what renders to the dom instead of the component's content
It works fine again when I replace this line:
with:
PhantomJS: 2.1.1
Ember: 2.4.5
ember-cli: 2.7.0
ember-cli-qunit: 2.1.0
The text was updated successfully, but these errors were encountered: