From 10a8f1998f9c539a87784153c554727d425d9c04 Mon Sep 17 00:00:00 2001 From: bodyguardU Date: Sun, 17 Aug 2014 16:56:11 -0300 Subject: [PATCH] tests(locators): add chaining on repeater returning a single column --- spec/basic/locators_spec.js | 6 ++++++ testapp/repeater/repeater.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/spec/basic/locators_spec.js b/spec/basic/locators_spec.js index 447451c..2cd2d4a 100644 --- a/spec/basic/locators_spec.js +++ b/spec/basic/locators_spec.js @@ -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)); diff --git a/testapp/repeater/repeater.html b/testapp/repeater/repeater.html index caf0c3d..ba3c0d9 100644 --- a/testapp/repeater/repeater.html +++ b/testapp/repeater/repeater.html @@ -1,5 +1,5 @@

A series of repeaters used in tests.

-