When testing Angular app with Protractor, Protractor will wait until Angular Zone stabilizes. This means long running async operations will block test from continuing (docs)
In adal-angular4AdalService sets a rxjs timer to execute refreshLoginToken function 5min before the token expires. This causes protractor tests to hang as the Zone is not stabilised.
To work around this, we need to run that task outside the Angular zone.
When testing Angular app with Protractor, Protractor will wait until Angular Zone stabilizes. This means long running async operations will block test from continuing (docs)
In
adal-angular4
AdalService
sets a rxjstimer
to executerefreshLoginToken
function 5min before the token expires. This causes protractor tests to hang as the Zone is not stabilised.To work around this, we need to run that task outside the Angular zone.