Skip to content

Ember 3.20+ Acceptance Test Error? #260

@mastastealth

Description

@mastastealth

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions