@@ -158,7 +158,8 @@ describe('ElementFinder', function() {
158
158
{ index : 2 , text : 'form' } ,
159
159
{ index : 3 , text : 'async' } ,
160
160
{ index : 4 , text : 'conflict' } ,
161
- { index : 5 , text : 'polling' }
161
+ { index : 5 , text : 'polling' } ,
162
+ { index : 6 , text : 'animation' }
162
163
] ) ;
163
164
} ) ;
164
165
@@ -186,7 +187,8 @@ describe('ElementFinder', function() {
186
187
newExpected ( 'form' ) ,
187
188
newExpected ( 'async' ) ,
188
189
newExpected ( 'conflict' ) ,
189
- newExpected ( 'polling' )
190
+ newExpected ( 'polling' ) ,
191
+ newExpected ( 'animation' )
190
192
] ) ;
191
193
} ) ;
192
194
@@ -197,7 +199,7 @@ describe('ElementFinder', function() {
197
199
return i ++ ;
198
200
} ) ;
199
201
200
- expect ( labels ) . toEqual ( [ 1 , 2 , 3 , 4 , 5 , 6 ] ) ;
202
+ expect ( labels ) . toEqual ( [ 1 , 2 , 3 , 4 , 5 , 6 , 7 ] ) ;
201
203
} ) ;
202
204
203
205
it ( 'should export an isPresent helper' , function ( ) {
@@ -207,6 +209,20 @@ describe('ElementFinder', function() {
207
209
expect ( element ( by . binding ( 'nopenopenope' ) ) . isPresent ( ) ) . toBe ( false ) ;
208
210
} ) ;
209
211
212
+ it ( 'should export an allowAnimations helper' , function ( ) {
213
+ browser . get ( 'index.html#/animation' ) ;
214
+ var animationTop = element ( by . id ( 'animationTop' ) ) ;
215
+ var toggledNode = element ( by . id ( 'toggledNode' ) ) ;
216
+
217
+ expect ( animationTop . allowAnimations ( ) ) . toBe ( true ) ;
218
+ animationTop . allowAnimations ( false ) ;
219
+ expect ( animationTop . allowAnimations ( ) ) . toBe ( false ) ;
220
+
221
+ expect ( toggledNode . isPresent ( ) ) . toBe ( true ) ;
222
+ element ( by . id ( 'checkbox' ) ) . click ( ) ;
223
+ expect ( toggledNode . isPresent ( ) ) . toBe ( false ) ;
224
+ } ) ;
225
+
210
226
it ( 'should keep a reference to the original locator' , function ( ) {
211
227
browser . get ( 'index.html#/form' ) ;
212
228
0 commit comments