ember-did-resize-modifier
ember-did-resize-modifier copied to clipboard
Ember 3.20+ Acceptance Test Error?
I have a component that uses the resize modifier. In an acceptance test of a page where this component is used, it's a simple visit with a pair of asserts. However I get a failure on the test because of an error: Can not call `.lookup` after the owner has been destroyed which is pointing at this line.
Forking the repo and updating to latest Ember doesn't reproduce the issue locally with the tests here, so I'm not sure if it's something on the app side or the modifier side. However, adding if (!this.owner.isDestroyed) to the front of the line fixes my test, fwiw.
@mastastealth are you seeing this in an engine? I am experiencing the same error in a engine (here's a repro), but have not been able to repro in an app that doesn't use engines.