HTML Code:
<div ng-repeat="todo in todos">
<span><input ng-model="todo.title" /></span>
<span><input ng-model="todo.time" /></span>
<span><input ng-model="todo.name" /></span>
</div>
Test Passing Successfully:
expect(element(by.repeater('todo in todos')).isPresent()).toBe(true);
Test Passing Successfully:
expect(element(by.repeater('todo in todos').row(1)).isPresent()).toBe(true);
Failing Test 1:
Expected false to be true.
expect(element(by.repeater('todo in todos').row(1).column('todo.name')).isPresent()).toBe(true);
Failing Test 2:
Expected false to be true.
browser.isElementPresent(element(by.repeater('todo in todos').row(1).column('todo.name'))).then(function(present){
expect(present).toBe(true);
})
While I am able to set and retrieve data at the item level, I seem to have difficulty using isPresent or isElementPresent at that same level. Any suggestions?