You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A project with both ember-cli-mocha and ember-mocha as top-level ember addons will result in duplicate fixture HTML being rendered. Unfortunately, this also means that more than one DOM element has the same id. This is not allowed.
The end result is that tests will pass, but the developer will not be able to easily inspect the rendered app in the 50% scaled frame (the second set of DOM elements) due to the real testing being done in the first set of DOM elements.
Removing ember-cli-mocha from the app's package.json resolves this problem.
ember-cli-mocha and ember-mocha should not be installed at the same time. ember-cli-mocha already brings its own ember-mocha dependency, but ultimately we should just use ember-mocha directly from now on
A project with both
ember-cli-mocha
andember-mocha
as top-level ember addons will result in duplicate fixture HTML being rendered. Unfortunately, this also means that more than one DOM element has the sameid
. This is not allowed.The end result is that tests will pass, but the developer will not be able to easily inspect the rendered app in the 50% scaled frame (the second set of DOM elements) due to the real testing being done in the first set of DOM elements.
Removing
ember-cli-mocha
from the app'spackage.json
resolves this problem.Possible root cause
the contentFor hook of this addon is
ember-mocha/index.js
Lines 66 to 77 in 13be23a
and for
ember-cli-mocha
https://github.com/ember-cli/ember-cli-mocha/blob/64d8742b7fdc8535f76b545fb7fc7c6d6c97b01c/index.js#L10-L13
It's possible that this results in
ember-mocha
's fixture HTML being inserted twiceThe text was updated successfully, but these errors were encountered: