ember-native-dom-helpers icon indicating copy to clipboard operation
ember-native-dom-helpers copied to clipboard

Deprecation message incorrect for ember-cli-qunit integration tests

Open edruder opened this issue 7 years ago • 2 comments
trafficstars

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 avatar Nov 14 '18 20:11 edruder

@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 avatar Nov 15 '18 11:11 cibernox

@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

code-sur avatar Oct 14 '20 16:10 code-sur