ember-native-dom-helpers
ember-native-dom-helpers copied to clipboard
Deprecation message incorrect for ember-cli-qunit integration tests
Using import { click } from '@ember/test-helpers' in an integration test in Ember 2.16, calling click('.foo') results in an error, Promise rejected during "my test": Must setup rendering context before attempting to interact with elements.
The click() provided by ember-native-dom-helpers works perfectly, in the same context.
@edruder I believe that you need to update your tests to the new testing api that was released around a year ago to use the helpers from @ember/test-helpers
It might sound scary but there is a codemod (https://github.com/rwjblue/ember-qunit-codemod) that does it for you in seconds.
@cibernox,
@edruder I believe that you need to update your tests to the new testing api that was released around a year ago to use the helpers from
@ember/test-helpers
@edruder is having this error while doing exactly what you are saying
I'm having the same error, btw