For example, i have this html-code of application:
<div class="swipe-cover" ng-swipe-left="func()"></div>
and such test:
it('test', function() {
browser.executeScript( 'angular.element(".swipe-cover").triggerHandler("swipeleft")' );
});
but it doesn't work.
If i use 'click' insteaf of 'swipeleft', it works.
How can i trigger 'swipeleft' event for e2e tests?