Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 69404aa

Browse files
committed
chore(test): fix by.exactRepeater test
Test should be implemented with by.exactRepeater instead of by.repeater see b147033
1 parent a04aa25 commit 69404aa

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

spec/basic/locators_spec.js

+10-4
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,6 @@ describe('locators', function() {
184184
var partialRowMatch = element(
185185
by.repeater('baz in days').row(0));
186186
expect(partialRowMatch.getText()).toEqual('T');
187-
188-
var partialRowMatch = element(
189-
by.repeater('baz in tDays').row(0));
190-
expect(partialRowMatch.getText()).toEqual('T');
191187
});
192188

193189
it('should return all rows when unmodified', function() {
@@ -281,6 +277,16 @@ describe('locators', function() {
281277
it('should have by.exactRepeater working', function() {
282278
expect(element(by.exactRepeater('day in d')).isPresent()).toBe(false);
283279
expect(element(by.exactRepeater('day in days')).isPresent()).toBe(true);
280+
281+
// Full ng-repeat: baz in tDays = (days | filter:'T')
282+
var repeaterWithEqualSign = element(
283+
by.exactRepeater('baz in tDays').row(0));
284+
expect(repeaterWithEqualSign.getText()).toEqual('T');
285+
286+
// Full ng-repeat: baz in days | filter:'T'
287+
var repeaterWithPipe = element(
288+
by.exactRepeater('baz in days').row(0));
289+
expect(repeaterWithPipe.getText()).toEqual('T');
284290
});
285291

286292
describe('repeaters using ng-repeat-start and ng-repeat-end', function() {

0 commit comments

Comments
 (0)