Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Protractor never synchronizes on pages using am-time-ago directive #19

Closed
urish opened this issue Nov 2, 2013 · 0 comments
Closed

Protractor never synchronizes on pages using am-time-ago directive #19

urish opened this issue Nov 2, 2013 · 0 comments

Comments

@urish
Copy link
Owner

urish commented Nov 2, 2013

The am-time-ago directive uses the $timeout service to automatically update the text as time passes. This causes protractor tests to fail, as there is always a pending $timeout and thus it never manages to synchronize. For more information about protractor synchronization, see [https://github.com/angular/protractor/issues/49] .

In order to fix this issue, we simply need to replace the $timeout calls with vanilla $window.setTimeout().

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant