You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(testability): scheduling a task with setInterval causes angular to be seen as unstable indefinitely #8089
describe('async angular2 application',function(){it('should work with setInterval',function(){browser.get('/ng2/#/async');$('#periodicIncrement .action').click();browser.waitForAngular();});});
This is a protractor spec against our ng2 testapp. I tried just doing an executeScript instead of clicking on an element but that didn't work, presumably because it wasn't being executed within an angular component.
This is working as intended - you should run the setInterval outside of the Angular zone. We should make sure that we have good documentation for this.
Activity
sjelin commentedon Apr 15, 2016
Minimal(ish) reproduction:
This is a protractor spec against our ng2 testapp. I tried just doing an
executeScriptinstead of clicking on an element but that didn't work, presumably because it wasn't being executed within an angular component.juliemr commentedon Apr 25, 2016
This is working as intended - you should run the
setIntervaloutside of the Angular zone. We should make sure that we have good documentation for this.juliemr commentedon Apr 25, 2016
See instead #8219
fix(E2E tests in Protractor): Change to setInterval to run outside of…
angular-automatic-lock-bot commentedon Sep 8, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.