-
-
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
this.on() no longer supported in rendering tests? #232
Comments
Actually, thinking for like 10 more seconds I guess I can do this: let onClick = sinon.stub();
this.set('onClick', onClick);
this.render(hbs`{{app-toolbar/button src=src text=text onClick=(action onClick)}}`);
this.$('[data-test-app-toolbar-button]').click(); But I'm still curious to know if this was an intentional feature removal. |
Yep, that’s exactly what you should do. The Also, FWIW, I just landed a PR in Ember-qunit-codemod to transform |
We also need to start fleshing out a better migration guide from ember-qunit@2 to Ember-qunit@3 showing the various permutations of things that folks should be doing... |
Using 0.6.x I pretty commonly use this pattern in component integration tests:
In 0.7.x it looks like
this.on()
no longer exists. Is this intentional? I suppose I can dobut I like the explicit-ness of using the
action
helper in the template to make it really clear that it's an action being passed in. I can certainly live without it, I'm just wondering if it was intentionally removed, or if it was an oversight.The text was updated successfully, but these errors were encountered: