This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
public/docs/_examples/animations Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ describe('Animation Tests', () => {
255
255
expect ( li . getCssValue ( 'transform' ) ) . toMatch ( NO_TRANSFORM_MATRIX_REGEX ) ;
256
256
expect ( li . getCssValue ( 'opacity' ) ) . toMatch ( '1' ) ;
257
257
258
- removeHero ( ) ;
258
+ removeHero ( 700 ) ;
259
259
expect ( li . isPresent ( ) ) . toBe ( false ) ;
260
260
} ) ;
261
261
@@ -289,19 +289,22 @@ describe('Animation Tests', () => {
289
289
} ) ;
290
290
} ) ;
291
291
292
- function addActiveHero ( ) {
292
+ function addActiveHero ( sleep ?: number ) {
293
+ sleep = sleep || 500 ;
293
294
element ( by . buttonText ( 'Add active hero' ) ) . click ( ) ;
294
- browser . driver . sleep ( 500 ) ;
295
+ browser . driver . sleep ( sleep ) ;
295
296
}
296
297
297
- function addInactiveHero ( ) {
298
+ function addInactiveHero ( sleep ?: number ) {
299
+ sleep = sleep || 500 ;
298
300
element ( by . buttonText ( 'Add inactive hero' ) ) . click ( ) ;
299
- browser . driver . sleep ( 500 ) ;
301
+ browser . driver . sleep ( sleep ) ;
300
302
}
301
303
302
- function removeHero ( ) {
304
+ function removeHero ( sleep ?: number ) {
305
+ sleep = sleep || 500 ;
303
306
element ( by . buttonText ( 'Remove hero' ) ) . click ( ) ;
304
- browser . driver . sleep ( 500 ) ;
307
+ browser . driver . sleep ( sleep ) ;
305
308
}
306
309
307
310
function getScaleX ( el : protractor . ElementFinder ) {
You can’t perform that action at this time.
0 commit comments