In my project we have Automated Tests in Selenium. Our application using AngularJS but we're rewriting to Angular 9 using Hybrid Approach. The problem is that those tests doesn't work because the method getAllAngularTestabilities()[0].whenStable()
is never run callback to inform Selenium that Angular finished underhood work.
Also when I run method getAllAngularTestabilities()[0].isStable()
then is always returnig false.
It's weird because property isStable is true, also microTasks and macroTask are empty.
But in fact somewhere deeper there is some loop that not allowing to Stable application, I was able to find this out thanks to answer from @Stanislav Berkov How to track which async tasks protractor is waiting on?
And apparently there is MacroTask from oidc-client, probably for refreshing token which is triggered every few minutes
And I've no idea how can I solve this. Maybe I could exclude the whole package somehow from zone.js, but I don't know how can I do this.