@@ -507,7 +507,9 @@ describe('Test gl2d lasso/select:', function() {
507
507
_mock . layout . dragmode = 'select' ;
508
508
gd = createGraphDiv ( ) ;
509
509
510
- Plotly . plot ( gd , _mock ) . then ( function ( ) {
510
+ Plotly . plot ( gd , _mock )
511
+ . then ( delay ( 100 ) )
512
+ . then ( function ( ) {
511
513
expect ( countGlObjects ( ) ) . toBe ( 1 , 'has on gl-scatter2d object' ) ;
512
514
513
515
return select ( selectPath ) ;
@@ -531,7 +533,9 @@ describe('Test gl2d lasso/select:', function() {
531
533
_mock . layout . dragmode = 'lasso' ;
532
534
gd = createGraphDiv ( ) ;
533
535
534
- Plotly . plot ( gd , _mock ) . then ( function ( ) {
536
+ Plotly . plot ( gd , _mock )
537
+ . then ( delay ( 100 ) )
538
+ . then ( function ( ) {
535
539
expect ( countGlObjects ( ) ) . toBe ( 1 ) ;
536
540
537
541
return select ( lassoPath2 ) ;
@@ -555,7 +559,9 @@ describe('Test gl2d lasso/select:', function() {
555
559
_mock . layout . dragmode = 'select' ;
556
560
gd = createGraphDiv ( ) ;
557
561
558
- Plotly . plot ( gd , _mock ) . then ( function ( ) {
562
+ Plotly . plot ( gd , _mock )
563
+ . then ( delay ( 100 ) )
564
+ . then ( function ( ) {
559
565
expect ( countGlObjects ( ) ) . toBe ( 2 , 'has a gl-line2d and a gl-scatter2d-sdf' ) ;
560
566
561
567
return select ( selectPath ) ;
@@ -575,7 +581,9 @@ describe('Test gl2d lasso/select:', function() {
575
581
_mock . layout . dragmode = 'lasso' ;
576
582
gd = createGraphDiv ( ) ;
577
583
578
- Plotly . plot ( gd , _mock ) . then ( function ( ) {
584
+ Plotly . plot ( gd , _mock )
585
+ . then ( delay ( 100 ) )
586
+ . then ( function ( ) {
579
587
expect ( countGlObjects ( ) ) . toBe ( 2 , 'has a gl-line2d and a gl-scatter2d-sdf' ) ;
580
588
581
589
return select ( lassoPath ) ;
0 commit comments