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 ???? });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)