Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a popover with a specific template. in Jasmine I want look if the component was correctly destroyed.

When check if the component exist in the page Jasmine find in. How can I check if the component was correctly detach ?

Example :

JavaScript
it('should close on click X', function () {
//Create the component popover with specific template
        prepareCompnont('<div> <span class="more_help" id="popover3" adata-toggle=\"customPopover\" data-content=\"Vivamus sagittis lacus vel augue laoreet rutrum faucibus.\"  title="" >i</span></div>');
//Open the popover
        var span = findElement('popover3');
        span.trigger("click");

//Close popover
var button = (angular.element(popover)).children(".close");
        expect(button).toBeDefined();
        button.trigger("click");

//Check if the popover has detached
????

});


Thanks a lot for your help.
Posted
Updated 10-Oct-13 5:50am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900