I'm using protractor for system tasting my ui-router SPA application. As I 
understands the documentation, protractor should wait for things to happen 
before/while angular is playing. for instance, when the user click a 
button, I'm changing the state. So I'm like -

$('#addProductButton button').click();

and then -

expect(browser.getLocationAbsUrl()).toContain('#/products/new');

but it fails. To work around that I'm using browser.wait until the location 
is good. but this is stink. *does someone knows why protractor is not 
waiting.*

p.s 

use browser.waitForAngular() doesn't work.

move the expect inside the click then doesn't work.

-- 
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.

Reply via email to