Skip to content
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

Deprecation message incorrect for ember-cli-qunit integration tests #149

Open
edruder opened this issue Nov 14, 2018 · 2 comments
Open

Deprecation message incorrect for ember-cli-qunit integration tests #149

edruder opened this issue Nov 14, 2018 · 2 comments

Comments

@edruder
Copy link

edruder commented Nov 14, 2018

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.

@cibernox
Copy link
Owner

@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.

@code-sur
Copy link

code-sur commented Oct 14, 2020

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants