angular-flash icon indicating copy to clipboard operation
angular-flash copied to clipboard

flashAlert directive breaks protractor tests.

Open dmitry-dedukhin opened this issue 10 years ago • 1 comments

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?

dmitry-dedukhin avatar Mar 04 '14 10:03 dmitry-dedukhin

+1

auser avatar Apr 27 '14 22:04 auser