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
All the properties that setupApplicationTest() sets up on your test's this context exist properly, except for element (the tests's root element). This is due to two unfortunate coincidences:
This means the lazily added element does not get added to the actual yadda context that the step function will see, so this.element is undefined there.
Don't know yet how to best fix this. For now you can workaround this by not using this.element but find()/findAll() (exposed by @ember/test-helpers) instead!
The text was updated successfully, but these errors were encountered:
All the properties that
setupApplicationTest()
sets up on your test'sthis
context exist properly, except forelement
(the tests's root element). This is due to two unfortunate coincidences:this.element
is set up lazily after the firstvisit()
call here: https://github.com/emberjs/ember-test-helpers/blob/cce178256ae0e2946c76961fee29fa6d6df6f2fc/addon-test-support/%40ember/test-helpers/setup-application-context.js#L23-L27This means the lazily added
element
does not get added to the actual yadda context that the step function will see, sothis.element
is undefined there.Don't know yet how to best fix this. For now you can workaround this by not using
this.element
butfind()
/findAll()
(exposed by@ember/test-helpers
) instead!The text was updated successfully, but these errors were encountered: