Skip to content

Commit

Permalink
test(count): test that element.all.count returns 0 if no elements are…
Browse files Browse the repository at this point in the history
… found
  • Loading branch information
juliemr committed Jun 17, 2014
1 parent a43f983 commit a69fe83
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/basic/elements_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ describe('ElementFinder', function() {
expect(element.all(by.model('color')).count()).toEqual(3);
});

it('should return 0 when counting no elements', function() {
browser.get('index.html#/form');

expect(element.all(by.binding('doesnotexist')).count()).toEqual(0);
});

it('should get an element from an array', function() {
var colorList = element.all(by.model('color'));

Expand Down

0 comments on commit a69fe83

Please sign in to comment.