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

element property does not exist in tests #14630

Closed
markcellus opened this issue Nov 22, 2016 · 4 comments
Closed

element property does not exist in tests #14630

markcellus opened this issue Nov 22, 2016 · 4 comments

Comments

@markcellus
Copy link

markcellus commented Nov 22, 2016

Apologies if this has already been discussed. But why isn't the element property available on contexts in integration tests, but the jQuery version of it is. In other words, why does this happen when done in an integration test?

test('element property is available', function(assert) {
  this.render(hbs`{{my-fake-component}}`);
  assert.ok(this.get('element')); // fails; undefined!
  assert.ok(this.$()[0]); // passes
});
@Serabe
Copy link
Member

Serabe commented Nov 30, 2016

@Turbo87 should we close this issue and track it in the ember-test-helpers repo or should we keep this open?

@Turbo87
Copy link
Member

Turbo87 commented Nov 30, 2016

@Serabe yes, I think that would be the right repo to track it.

@mkay581 we've moved your question/request over to emberjs/ember-test-helpers#184

@Serabe
Copy link
Member

Serabe commented Nov 30, 2016

Thank you, @mkay581 and @Turbo87! Closing this to track it in the linked issue.

@Serabe Serabe closed this as completed Nov 30, 2016
@markcellus
Copy link
Author

Awesome, thanks!

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