A little late, but thanks for this blog. I just swapped ember-wormhole for in-element. The example with @renderOut was quite useful to replace wormhole's renderInPlace argument.
One thing I noticed is that using in-element can break tests, as assert.dom() doesn't seem to find the right element anymore. Since I use a component as abstraction to in-element, I enforce to render in place for tests.
This might depend on your renderOut target. If you use document.body, your modals will render outside the QUnit container and fail await find() references. If you use document.querySelector('.ember-application'), you should be good (at least that's the case for me).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
A little late, but thanks for this blog. I just swapped
ember-wormhole
forin-element
. The example with@renderOut
was quite useful to replace wormhole'srenderInPlace
argument.One thing I noticed is that using
in-element
can break tests, asassert.dom()
doesn't seem to find the right element anymore. Since I use a component as abstraction toin-element
, I enforce to render in place for tests.This might depend on your
renderOut
target. If you usedocument.body
, your modals will render outside the QUnit container and failawait find()
references. If you usedocument.querySelector('.ember-application')
, you should be good (at least that's the case for me).