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

Ember 3.20+ Acceptance Test Error? #260

Open
mastastealth opened this issue Nov 9, 2020 · 1 comment · May be fixed by #293
Open

Ember 3.20+ Acceptance Test Error? #260

mastastealth opened this issue Nov 9, 2020 · 1 comment · May be fixed by #293

Comments

@mastastealth
Copy link

mastastealth commented Nov 9, 2020

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.

@jamescdavis
Copy link

@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.

@jamescdavis jamescdavis linked a pull request Feb 15, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants