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 +7
-7
lines changed
public/docs/_examples/animations Expand file tree Collapse file tree 1 file changed +7
-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,19 @@ describe('Animation Tests', () => {
289
289
} ) ;
290
290
} ) ;
291
291
292
- function addActiveHero ( ) {
292
+ function addActiveHero ( sleep = 500 ) {
293
293
element ( by . buttonText ( 'Add active hero' ) ) . click ( ) ;
294
- browser . driver . sleep ( 500 ) ;
294
+ browser . driver . sleep ( sleep ) ;
295
295
}
296
296
297
- function addInactiveHero ( ) {
297
+ function addInactiveHero ( sleep = 500 ) {
298
298
element ( by . buttonText ( 'Add inactive hero' ) ) . click ( ) ;
299
- browser . driver . sleep ( 500 ) ;
299
+ browser . driver . sleep ( sleep ) ;
300
300
}
301
301
302
- function removeHero ( ) {
302
+ function removeHero ( sleep = 500 ) {
303
303
element ( by . buttonText ( 'Remove hero' ) ) . click ( ) ;
304
- browser . driver . sleep ( 500 ) ;
304
+ browser . driver . sleep ( sleep ) ;
305
305
}
306
306
307
307
function getScaleX ( el : protractor . ElementFinder ) {
You can’t perform that action at this time.
0 commit comments