This repository was archived by the owner on Jul 29, 2024. It is now read-only.
File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -184,10 +184,6 @@ describe('locators', function() {
184
184
var partialRowMatch = element (
185
185
by . repeater ( 'baz in days' ) . row ( 0 ) ) ;
186
186
expect ( partialRowMatch . getText ( ) ) . toEqual ( 'T' ) ;
187
-
188
- var partialRowMatch = element (
189
- by . repeater ( 'baz in tDays' ) . row ( 0 ) ) ;
190
- expect ( partialRowMatch . getText ( ) ) . toEqual ( 'T' ) ;
191
187
} ) ;
192
188
193
189
it ( 'should return all rows when unmodified' , function ( ) {
@@ -281,6 +277,16 @@ describe('locators', function() {
281
277
it ( 'should have by.exactRepeater working' , function ( ) {
282
278
expect ( element ( by . exactRepeater ( 'day in d' ) ) . isPresent ( ) ) . toBe ( false ) ;
283
279
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' ) ;
284
290
} ) ;
285
291
286
292
describe ( 'repeaters using ng-repeat-start and ng-repeat-end' , function ( ) {
You can’t perform that action at this time.
0 commit comments