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
{{ message }}
This repository has been archived by the owner on May 29, 2019. It is now read-only.
Hi,
I've an unit test that check if a modal is getting closed. Running it with UI Bootstrap 0.9.0 it works fine! I've updated UI Bootstrap to 0.10.0 and now this test doesn't run !!!
$modalInstance.close() works, the modal is closed, but the css class is still present in the DOM !!
My test is like this
// open the modal
myModal.open();
$rootScope.$digest();
// modal should be present in the DOM
angular.element.find('.my-modal-class');
// close the modal
myModal.close();
$rootScope.$digest();
// modal should be not present in the DOM
angular.element.find('.my-modal-class');
And the function to open e close the modal are simply
Hi,
I've an unit test that check if a modal is getting closed. Running it with UI Bootstrap 0.9.0 it works fine! I've updated UI Bootstrap to 0.10.0 and now this test doesn't run !!!
$modalInstance.close() works, the modal is closed, but the css class is still present in the DOM !!
My test is like this
And the function to open e close the modal are simply
and
What's wrong? I'm sure that modal is closed....but why do I find '.my-modal-class' in the DOM if is closed?
The text was updated successfully, but these errors were encountered: