-
Notifications
You must be signed in to change notification settings - Fork 15
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
Destroying state leaking between acceptance tests #11
Comments
hey @alvincrespo , I just bumped into that issue. In my case, I'm trying now to have a better understanding of the problem/code. (and I'm on version 0.0.6) |
Adding this code to the component willDestroyElement: function() {
if( lastOpenedModal === this ) {
lastOpenedModal = null;
}
}, is obviously enough to get rid of the exception. |
`lastOpenedModal` is reset when destroying without closing [Fixes instructure#11]
When trying to write acceptance tests, I'm getting the following error:
Error
Implementation
Test
Here is what I've noticed:
destroying
is the state whenclick('.leave-activity:first-of-type');
is executedthis.get('element')
is undefined when thefocus
event is taking placeI'm curious if we should be disabling the focus event when the component is being destroyed?
The text was updated successfully, but these errors were encountered: