Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

waitForAngular not waiting #96

Closed
Closed
@Hardcode37

Description

@Hardcode37

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions