-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Best practice about synchronization #1599
Comments
Protractor should be taking care of synchronization for you, if your application is pure angular (as you read, it can't handle stuff outside of the Angular world). Our tests show various examples of synchronization (see https://github.com/angular/protractor/blob/master/spec/basic/synchronize_spec.js)
I'd love to see specific examples of what's not working for you. If you could provide a reduced test case which is nondeterministic, I'd be happy to take a look! |
I do not have now a reduced test case which is nondeterministic. Anyway one problem comes from a jquery plugin, called masonry (i am using the wrapper in angular) that basically loads elements with images and format this elements (like width , position, etc.) when the image is loaded. Regarding waitForAngular(), I think 2 words in the documentation about what it waits for could help understand and improve the library in a better way. |
So after the elements are loaded are you able to call browser.wait which On 9 December 2014 at 17:57, Giovanni Gaglione [email protected]
|
I have dozens of test cases.
The problem I note is that they look to be completely nondeterministic: sometimes test have success, some other time they fail.
The tests that fail do not include pages with a lot of jquery plugin. It is pure angular sometimes, with REST calls. But still they fail.
When does waitForAngular is applied and when does not?
Is waitForAngular enough or should I care of some particular situation?
When does waitForAngular return?
The documentation says I shoudn't care of synchronization, but it does not look to be so true.
The text was updated successfully, but these errors were encountered: