-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
Replacement for this.$()
#327
Comments
you can do |
Well I'd have to do But my larger concern is being able to code-mod these changes. We're going to have to change 10K tests, and the code-mod has been a sanity-saver. Having to run the code-mod, clean up the code, then adding an extra step of doing my own find/replace with |
if you're using I would recommend to use https://github.com/simplabs/qunit-dom for assertions, which should work with both variants. see also ember-cli/rfcs#116 |
We're using Thats a totally different library, and would be a much larger change than running a code-mod over a lot of tests. Can you help me better understand your reticence to something like |
we already have |
@Turbo87 Why is that? And is it documented anywhere? |
because emberjs/ember-qunit@98f6bbc added the dependency and the first release to include this was v3.0.0-beta.3 |
Currently, there isn't a great replacement for
this.$()
in integration tests. What you have to do now isfind(.class, this.element || this_element)
(depending on our version of ember-qunit). Additionally, theember-test-helpers-codemod
does not handle this case, which makes switching away from the jQuery helpers tedious and a lot more work.What do you think about adding a
findInComponent
integration helper?The text was updated successfully, but these errors were encountered: