angular-flash
angular-flash copied to clipboard
flashAlert directive breaks protractor tests.
Hi!
I've noticed that flashAlert directive uses $timeout to auto-hide alert. But this cause protractor tests to fail, e.g. when I want to test whether flash is shown, because while the flash is shown protractor can't synchronize with the page waiting for all timeouts to complete. See protractor's FAQ for details.
So, I propose to use $interval service to support protractor, but this service available only since angular 1.2.0-rc.3. What do you think about this?
+1