waitForAngular not waiting #96
Description
I have some tests that fail when filtering by name, address etc..
In my view I display all results using ng-repeat and have some input boxes for filtering the results. My issue is, when the tests run all results are brought back and int one test and this test passes but when filtering the results the filter tests fail. I have tried waitForAngular but this does not work.
My results are brought back using RestAngular and a back end get request. The get request is promise based so I do not understand why I do not get the expect result back.
my test case is
it('should filter results by age: expect result to be 0', function() {
ptor.get('http://localhost:22222/#/users');
ptor.findElement(protractor.By.input('search.age')).sendKeys('29');
ptor.findElement(protractor.By.id('filterBtn')).click();
ptor.findElement(protractor.By.repeater('users in usersList.data').column('{{user.age}}')).then(function(resultingRows) {
expect(resultingRows.length).toBe(0);
});
}, 30000);
Am I doing something wrong here or should I be using webdriver to wait for n time before proceeding.