Hi, in some forms we've got optimistic updates, i.e. when user click e.g. a checkbox, it's toggled in the view immediately, then a request is fired and if the request fails, the change is reverted.
In my tests if I check the checkbox value right after user clicks it, the value is correct even if the request fails or it succeeds, but doesn't really update the modified value. It looks like the check is either done before the request is fired, or Protractor doesn't wait for the request to finish. What's the best way to write tests for such case? Use sleep(x)? Cheers, Szymon -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
