diff options
| author | Julie | 2014-02-12 15:07:08 -0800 |
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 19:03:42 +0000 |
| commit | 9565cca15b6d30aefb78bcec411dea4f7b305019 (patch) | |
| tree | 1c0d58d7541b7d6fb96fb1d1d068d48eb0fca97a /src/ng/directive/ngRepeat.js | |
| parent | cd508678cd9baffd2bc0c9e11ae724a7b2ff70bb (diff) | |
| download | angular.js-9565cca15b6d30aefb78bcec411dea4f7b305019.tar.bz2 | |
chore(protractor tests): fix up e2e tests
Diffstat (limited to 'src/ng/directive/ngRepeat.js')
| -rw-r--r-- | src/ng/directive/ngRepeat.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ng/directive/ngRepeat.js b/src/ng/directive/ngRepeat.js index 4fa82de3..d2c2027b 100644 --- a/src/ng/directive/ngRepeat.js +++ b/src/ng/directive/ngRepeat.js @@ -172,9 +172,8 @@ max-height:40px; } </file> - <file name="protractorTest.js"> - var friends = element(by.css('.doc-example-live')) - .element.all(by.repeater('friend in friends')); + <file name="protractor.js" type="protractor"> + var friends = element.all(by.repeater('friend in friends')); it('should render initial data set', function() { expect(friends.count()).toBe(10); @@ -188,7 +187,7 @@ it('should update repeater when filter predicate changes', function() { expect(friends.count()).toBe(10); - element(by.css('.doc-example-live')).element(by.model('q')).sendKeys('ma'); + element(by.model('q')).sendKeys('ma'); expect(friends.count()).toBe(2); expect(friends.get(0).getText()).toEqual('[1] Mary who is 28 years old.'); |
