-
-
Notifications
You must be signed in to change notification settings - Fork 258
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
TestModuleForComponent, integration: true, and {{link-to}} incompatible #41
Comments
This seems related to eviltrout/ember-performance#34 |
I've opened ember-cli/ember-cli#3995 as a possible solution since it doesn't seem to me that |
It's possible this will be -- or could be -- resolved by #38. |
Still seeing this after the merge of #38. |
Just a note that this issue with |
@mitchlloyd - Yep, I tested just a bit ago. It is getting closer though.... 😄 |
I am seeing the same thing with here is the error:
Hope it helps. I am very excited to see this style of testing for components moving forward! i've whipped up a quick project to reproduce: https://github.com/jeremywrowe/ember-component-tests-wip |
Lies! This isn't working for me. |
Is there a solution for this yet? I'm loving |
Should be working with beta of ember and 0.4.0 of ember-qunit |
Thanks! For anyone curious here's the PR in Ember: emberjs/ember.js#11522 |
Ok, closing for now. Happy to reopen if folks are still having an issue on 2.0.0-beta.1+. |
I'm seeing something similar. An
(thrown from here) function calculatePostTransitionState(emberRouter, leafRouteName, contexts) {
var routerjs = emberRouter.router;
var state = routerjs.applyIntent(leafRouteName, contexts);
var handlerInfos = state.handlerInfos;
var params = state.params;
for (var i = 0, len = handlerInfos.length; i < len; ++i) {
var handlerInfo = handlerInfos[i];
if (!handlerInfo.isResolved) {
handlerInfo = handlerInfo.becomeResolved(null, handlerInfo.context);
}
params[handlerInfo.name] = handlerInfo.params;
}
return state;
} It looks like |
What Ember version? This is fixed in the beta channel (but won't be back ported to 1.13 most likely). |
@rwjblue in both |
We had similar issues on
That, plus the patch that is on |
@thec0keman tried that out to no avail. 😞 |
@seanpdoyle - I think the fix landed after 2.0.0-beta.1, so you'll have to test in the latest beta builds ( |
The fixes needed have been pulled into release channel, and will be included in 1.13.3. Thanks to @nathanhammond and @tomdale for making this happen. |
For anyone reading, I was seeing this error with the following combination:
(gradual upgrade of an app) Downgraded |
@rwjblue is there any chance that the fixes needed to make integration testing of |
I've opened this issue asking to get this functionality into 1.12.x. UPDATE: If anyone needs to get this working before the PR I've submitted has been looked at/merged/released, you can use my fork by changing ember in your bower.json to this:
|
@blimmer Thanks for that PR and for providing the Bower info, that's exactly what I needed! |
I have a very simple component:
and a very simple test:
With those three factors together, I get
Cannot read property 'recognizer' of undefined
andSomething you did caused a view to re-render after it rendered but before it was inserted into the DOM.
If I remove the link, the test passes. If I turn off
integration: true
, the test passes.In this case, I need
integration: true
because the helper requires the basic app infrastructure.The text was updated successfully, but these errors were encountered: