Skip to content

Commit

Permalink
tests(locators): add chaining on repeater returning a single column
Browse files Browse the repository at this point in the history
  • Loading branch information
bodyduardU authored and juliemr committed Aug 20, 2014
1 parent ae6b7c4 commit 10a8f19
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions spec/basic/locators_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,12 @@ describe('locators', function() {
});
});

it('should allow chaining while returning a single column', function() {
var secondName = element(by.css('.allinfo')).element(
by.repeater('allinfo in days').column('name').row(2));
expect(secondName.getText()).toEqual('Wednesday');
});

it('should return a single row', function() {
var secondRow = element(
by.repeater('allinfo in days').row(1));
Expand Down
2 changes: 1 addition & 1 deletion testapp/repeater/repeater.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p>A series of repeaters used in tests.</p>
<ul><li ng-repeat="allinfo in days">
<ul class="allinfo"><li ng-repeat="allinfo in days">
<span>{{allinfo.initial}}</span>
<span>{{allinfo.name}}</span>
</li></ul>
Expand Down

0 comments on commit 10a8f19

Please sign in to comment.