I have installed ng-idle
module to my AngularJS application.
I set up this module next way:
.config(['IdleProvider', IdleProvider => {
// Timer before logout (seconds)
IdleProvider.timeout(60);
IdleProvider.keepalive(false);
}])
.run(['Idle' 'user', (Idle, user) => {
// user is a service
if (user.loggedIn)
Idle.watch();
}]);
Everything works perfectly. But now I am trying to run protractor tests, and they are failing with the next error:
Failed: Timed out waiting for asynchronous Angular tasks to finish after 11 seconds. This may be because the current page is not an Angular application. Please see the FAQ for more details: https://github.com/angular/protractor/blob/master/docs/timeouts.md#waiting-for-angular
Without this module, every test passed.
Thanks!