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

You cannot use the same root element (body) #29

Closed
H1D opened this issue Apr 1, 2014 · 6 comments
Closed

You cannot use the same root element (body) #29

H1D opened this issue Apr 1, 2014 · 6 comments

Comments

@H1D
Copy link

H1D commented Apr 1, 2014

Using karma I always get this error:

Setup failed on Works as link when popups disabled: Assertion Failed: You cannot use the same root element (body) multiple times in an Ember.Application

I don't know exactly but seems like that's because karma do run many tests in the same time. So module setup() maybe called twise before module teardown() gets called.

@ppcano
Copy link

ppcano commented Apr 26, 2014

It could be that the application has not been reseted. You must call application.reset in your teardown module callback:

moduleForComponent('app-person', 'app-person', {
  teardown: function() {
    if ( App ) App.reset();
  }
});

If you are testing a component, the exception is thrown when the event dispatcher is setup and the application has not been reseted.

@shivanibhanwal
Copy link

hi @rwjblue do you have any plans to release the npm package for the latest fixes?

@dgeb
Copy link
Member

dgeb commented Oct 30, 2014

@shivanibhanwal I'm helping @rwjblue out with the new version and expect to have a new release out by the end of tomorrow.

@shivanibhanwal
Copy link

Thank you I will be waiting for the release!

@dgeb
Copy link
Member

dgeb commented Nov 3, 2014

A new release is in the canary branch of ember-qunit-builds. We're doing some final verification with large test suites before releasing as 0.2.0. Please feel free to test and report any problems.

@Turbo87
Copy link
Member

Turbo87 commented Oct 14, 2017

this seems no longer relevant, closing due to age

@Turbo87 Turbo87 closed this as completed Oct 14, 2017
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

5 participants