I am writing end-to-end tests for my angular application. I need to check dates that are in the correct format. So I want to enter "datefilter" so that I can use it in protractor.
When I 'googled', I found that I could use browser.executeAsyncScript to get the injector, and then use
angular.injector(["ng"]).get("dateFilter");
to get the date feed.
But I'm still not able to combine them into code. Any heads-up will be enough to make me go with the code.
source
share