alexcrack / angular-ui-notification

Angular.js service providing simple notifications using Bootstrap 3 styles with css transitions for animating
MIT License
536 stars 169 forks source link

Use $interval for scheduled finishable tasks instead of $timeout #85

Open jlast opened 8 years ago

jlast commented 8 years ago

Protractor tests will have issues with $timeout. They wait for the ui-message to hide again which can cause timeouts on the function. Replacing the $timeout with a scheduled $interval (with count 1) you can surpass this.