@@ -326,7 +326,7 @@ describe('Draggable', () => {
326
326
triggerEvent ( draggableElement , 'mousedown' , { button : 0 } ) ;
327
327
328
328
// Wait for delay
329
- waitForDragDelay ( 100 ) ;
329
+ waitForDragDelay ( ) ;
330
330
331
331
const containerChildren = newInstance . getDraggableElementsForContainer ( draggableElement . parentNode ) ;
332
332
@@ -349,7 +349,7 @@ describe('Draggable', () => {
349
349
const dynamicContainer = document . querySelector ( '.DynamicContainer' ) ;
350
350
351
351
clickMouse ( draggableElement ) ;
352
- waitForDragDelay ( 100 ) ;
352
+ waitForDragDelay ( ) ;
353
353
moveMouse ( dynamicContainer ) ;
354
354
355
355
expect ( dragOverContainerHandler ) . not . toHaveBeenCalled ( ) ;
@@ -361,7 +361,7 @@ describe('Draggable', () => {
361
361
expect ( newInstance . containers ) . toEqual ( [ ...containers , dynamicContainer ] ) ;
362
362
363
363
clickMouse ( draggableElement ) ;
364
- waitForDragDelay ( 100 ) ;
364
+ waitForDragDelay ( ) ;
365
365
moveMouse ( dynamicContainer ) ;
366
366
expect ( dragOverContainerHandler ) . toHaveBeenCalled ( ) ;
367
367
@@ -383,7 +383,7 @@ describe('Draggable', () => {
383
383
const dynamicContainer = document . querySelector ( '.DynamicContainer' ) ;
384
384
385
385
clickMouse ( draggableElement ) ;
386
- waitForDragDelay ( 100 ) ;
386
+ waitForDragDelay ( ) ;
387
387
moveMouse ( dynamicContainer ) ;
388
388
389
389
expect ( dragOverContainerHandler ) . toHaveBeenCalled ( ) ;
@@ -398,7 +398,7 @@ describe('Draggable', () => {
398
398
newInstance . on ( 'drag:over:container' , dragOverContainerHandler ) ;
399
399
400
400
clickMouse ( draggableElement ) ;
401
- waitForDragDelay ( 100 ) ;
401
+ waitForDragDelay ( ) ;
402
402
moveMouse ( dynamicContainer ) ;
403
403
404
404
expect ( dragOverContainerHandler ) . not . toHaveBeenCalled ( ) ;
@@ -483,7 +483,7 @@ describe('Draggable', () => {
483
483
484
484
triggerEvent ( draggableElement , 'mousedown' , { button : 0 } ) ;
485
485
// Wait for delay
486
- waitForDragDelay ( 100 ) ;
486
+ waitForDragDelay ( ) ;
487
487
488
488
const call = callback . mock . calls [ 0 ] [ 0 ] ;
489
489
@@ -507,7 +507,7 @@ describe('Draggable', () => {
507
507
triggerEvent ( draggableElement , 'mousedown' , { button : 0 } ) ;
508
508
509
509
// Wait for delay
510
- waitForDragDelay ( 100 ) ;
510
+ waitForDragDelay ( ) ;
511
511
512
512
triggerEvent ( draggableElement , 'dragstart' , { button : 0 } ) ;
513
513
@@ -540,7 +540,7 @@ describe('Draggable', () => {
540
540
triggerEvent ( draggableElement , 'mousedown' , { button : 0 } ) ;
541
541
542
542
// Wait for delay
543
- waitForDragDelay ( 100 ) ;
543
+ waitForDragDelay ( ) ;
544
544
545
545
triggerEvent ( draggableElement , 'dragstart' , { button : 0 } ) ;
546
546
@@ -559,7 +559,7 @@ describe('Draggable', () => {
559
559
triggerEvent ( draggableElement , 'mousedown' , { button : 0 } ) ;
560
560
561
561
// Wait for delay
562
- waitForDragDelay ( 100 ) ;
562
+ waitForDragDelay ( ) ;
563
563
564
564
const callback = jest . fn ( ) ;
565
565
newInstance . on ( 'drag:move' , callback ) ;
@@ -593,7 +593,7 @@ describe('Draggable', () => {
593
593
triggerEvent ( draggableElement , 'mousedown' , { button : 0 } ) ;
594
594
595
595
// Wait for delay
596
- waitForDragDelay ( 100 ) ;
596
+ waitForDragDelay ( ) ;
597
597
598
598
const callback = jest . fn ( ) ;
599
599
newInstance . on ( 'drag:stop' , callback ) ;
@@ -641,7 +641,7 @@ describe('Draggable', () => {
641
641
triggerEvent ( draggableElement , 'mousedown' , { button : 0 } ) ;
642
642
643
643
// Wait for delay
644
- waitForDragDelay ( 100 ) ;
644
+ waitForDragDelay ( ) ;
645
645
646
646
expect ( newInstance . source . classList ) . toContain ( 'draggable-source--is-dragging' ) ;
647
647
@@ -658,7 +658,7 @@ describe('Draggable', () => {
658
658
triggerEvent ( draggableElement , 'mousedown' , { button : 0 } ) ;
659
659
660
660
// Wait for delay
661
- waitForDragDelay ( 100 ) ;
661
+ waitForDragDelay ( ) ;
662
662
663
663
const source = newInstance . source ;
664
664
@@ -683,7 +683,7 @@ describe('Draggable', () => {
683
683
triggerEvent ( draggableElement , 'mousedown' , { button : 0 } ) ;
684
684
685
685
// Wait for delay
686
- waitForDragDelay ( 100 ) ;
686
+ waitForDragDelay ( ) ;
687
687
688
688
const source = newInstance . source ;
689
689
@@ -703,7 +703,7 @@ describe('Draggable', () => {
703
703
triggerEvent ( draggableElement , 'mousedown' , { button : 0 } ) ;
704
704
705
705
// Wait for delay
706
- waitForDragDelay ( 100 ) ;
706
+ waitForDragDelay ( ) ;
707
707
708
708
expect ( document . body . classList ) . toContain ( 'draggable--is-dragging' ) ;
709
709
@@ -721,7 +721,7 @@ describe('Draggable', () => {
721
721
triggerEvent ( draggableElement , 'mousedown' , { button : 0 } ) ;
722
722
723
723
// Wait for delay
724
- waitForDragDelay ( 100 ) ;
724
+ waitForDragDelay ( ) ;
725
725
expect ( document . body . classList ) . toContain ( 'draggable--is-dragging' ) ;
726
726
727
727
triggerEvent ( document . body , 'mouseup' , { button : 0 } ) ;
@@ -743,7 +743,7 @@ describe('Draggable', () => {
743
743
triggerEvent ( draggableElement , 'mousedown' , { button : 0 } ) ;
744
744
745
745
// Wait for delay
746
- waitForDragDelay ( 100 ) ;
746
+ waitForDragDelay ( ) ;
747
747
748
748
expect ( document . body . classList ) . not . toContain ( 'draggable--is-dragging' ) ;
749
749
@@ -761,7 +761,7 @@ describe('Draggable', () => {
761
761
triggerEvent ( draggableElement , 'mousedown' , { button : 0 } ) ;
762
762
763
763
// Wait for delay
764
- waitForDragDelay ( 100 ) ;
764
+ waitForDragDelay ( ) ;
765
765
766
766
triggerEvent ( draggableElement , 'mouseup' , { button : 0 } ) ;
767
767
@@ -779,7 +779,7 @@ describe('Draggable', () => {
779
779
triggerEvent ( draggableElement , 'mousedown' , { button : 0 } ) ;
780
780
781
781
// Wait for delay
782
- waitForDragDelay ( 100 ) ;
782
+ waitForDragDelay ( ) ;
783
783
784
784
triggerEvent ( document . body , 'mouseup' , { button : 0 } ) ;
785
785
@@ -802,7 +802,7 @@ describe('Draggable', () => {
802
802
triggerEvent ( draggableElement , 'mousedown' , { button : 0 } ) ;
803
803
804
804
// Wait for delay
805
- waitForDragDelay ( 100 ) ;
805
+ waitForDragDelay ( ) ;
806
806
807
807
expect ( containers [ 0 ] . classList ) . toContain ( 'draggable-container--is-dragging' ) ;
808
808
@@ -820,7 +820,7 @@ describe('Draggable', () => {
820
820
triggerEvent ( draggableElement , 'mousedown' , { button : 0 } ) ;
821
821
822
822
// Wait for delay
823
- waitForDragDelay ( 100 ) ;
823
+ waitForDragDelay ( ) ;
824
824
825
825
expect ( containers [ 0 ] . classList ) . toContain ( 'draggable-container--is-dragging' ) ;
826
826
@@ -842,7 +842,7 @@ describe('Draggable', () => {
842
842
triggerEvent ( draggableElement , 'mousedown' , { button : 0 } ) ;
843
843
844
844
// Wait for delay
845
- waitForDragDelay ( 100 ) ;
845
+ waitForDragDelay ( ) ;
846
846
847
847
expect ( containers [ 0 ] . classList ) . not . toContain ( 'draggable-container--is-dragging' ) ;
848
848
@@ -859,7 +859,7 @@ describe('Draggable', () => {
859
859
triggerEvent ( draggableElement , 'mousedown' , { button : 0 } ) ;
860
860
861
861
// Wait for delay
862
- waitForDragDelay ( 100 ) ;
862
+ waitForDragDelay ( ) ;
863
863
864
864
expect ( draggableElement . classList . contains ( newInstance . getClassNameFor ( 'source:original' ) ) ) . toBeTruthy ( ) ;
865
865
@@ -887,21 +887,21 @@ describe('Draggable', () => {
887
887
triggerEvent ( draggableElement , 'mousedown' , { button : 0 } ) ;
888
888
889
889
// Wait for delay
890
- waitForDragDelay ( 100 ) ;
890
+ waitForDragDelay ( ) ;
891
891
892
892
expect ( newInstance . isDragging ( ) ) . toBe ( true ) ;
893
893
894
894
document . elementFromPoint = ( ) => draggableElement . nextElementSibling ;
895
895
triggerEvent ( draggableElement . nextElementSibling , 'mousemove' , { button : 0 } ) ;
896
896
897
897
// Wait for delay
898
- waitForDragDelay ( 100 ) ;
898
+ waitForDragDelay ( ) ;
899
899
900
900
document . elementFromPoint = ( ) => document . body ;
901
901
triggerEvent ( document . body , 'mousemove' , { button : 0 } ) ;
902
902
903
903
// Wait for delay
904
- waitForDragDelay ( 100 ) ;
904
+ waitForDragDelay ( ) ;
905
905
906
906
triggerEvent ( document . body , 'mouseup' , { button : 0 } ) ;
907
907
} ) ;
0 commit comments