@@ -2479,15 +2479,15 @@ describe('IgxQueryBuilder', () => {
24792479 Y += 5 * inc ;
24802480
24812481 QueryBuilderFunctions . dragMove ( dragDir , X , Y ) ;
2482- await wait ( ) ;
2482+ await wait ( 10 ) ;
24832483 fix . detectChanges ( ) ;
24842484
24852485 const dropGhost = QueryBuilderFunctions . getDropGhost ( fix ) ;
24862486 const prevElement = dropGhost && dropGhost . previousElementSibling ? QueryBuilderFunctions . getChipContent ( dropGhost . previousElementSibling ) : null ;
24872487 const nextElement = dropGhost && dropGhost . nextElementSibling ? QueryBuilderFunctions . getChipContent ( dropGhost . nextElementSibling ) : null ;
24882488
24892489 if ( i < 8 && ! ghostPositionVisits [ 0 ] ) {
2490- await wait ( 100 ) ;
2490+ await wait ( 50 ) ;
24912491 if ( ! dropGhost ) ghostPositionVisits [ 0 ] = true ;
24922492 }
24932493
@@ -2516,7 +2516,7 @@ describe('IgxQueryBuilder', () => {
25162516 }
25172517
25182518 if ( i > 63 && ! ghostPositionVisits [ 7 ] ) {
2519- await wait ( 100 ) ;
2519+ await wait ( 50 ) ;
25202520 if ( ! dropGhost ) ghostPositionVisits [ 7 ] = true ;
25212521 }
25222522
@@ -2744,7 +2744,7 @@ describe('IgxQueryBuilder', () => {
27442744
27452745 //drop condition
27462746 dragDir . onPointerUp ( { pointerId : 1 , pageX : addConditionButtonCenter . X , pageY : addConditionButtonCenter . Y } ) ;
2747- wait ( ) ;
2747+ wait ( 20 ) ;
27482748 fix . detectChanges ( ) ;
27492749
27502750 const exprTree = JSON . stringify ( fix . componentInstance . queryBuilder . expressionTree , null , 2 ) ;
@@ -2946,7 +2946,7 @@ describe('IgxQueryBuilder', () => {
29462946 expect ( QueryBuilderFunctions . getChipContent ( newGroupConditions [ 0 ] ) ) . toBe ( "OrderDate Today" ) ;
29472947 } ) ;
29482948
2949- it ( 'should render drop ghost properly when keyboard dragged.' , ( ) => {
2949+ it ( 'should render drop ghost properly when keyboard dragged.' , async ( ) => {
29502950 const draggedIndicator = fix . debugElement . queryAll ( By . css ( '.igx-drag-indicator' ) ) [ 1 ] ;
29512951 const tree = fix . debugElement . query ( By . css ( '.igx-filter-tree' ) ) ;
29522952
@@ -2960,7 +2960,7 @@ describe('IgxQueryBuilder', () => {
29602960 let keyPress = new KeyboardEvent ( 'keydown' , { key : 'ArrowDown' } ) ;
29612961 for ( let i = 0 ; i <= 5 ; i ++ ) {
29622962 tree . nativeElement . dispatchEvent ( keyPress ) ;
2963- wait ( ) ;
2963+ wait ( 20 ) ;
29642964 fix . detectChanges ( ) ;
29652965
29662966 const dropGhost = QueryBuilderFunctions . getDropGhost ( fix ) ;
@@ -3000,7 +3000,7 @@ describe('IgxQueryBuilder', () => {
30003000 keyPress = new KeyboardEvent ( 'keydown' , { key : 'ArrowUp' } ) ;
30013001 for ( let i = 0 ; i <= 10 ; i ++ ) {
30023002 tree . nativeElement . dispatchEvent ( keyPress ) ;
3003- wait ( ) ;
3003+ wait ( 20 ) ;
30043004 fix . detectChanges ( ) ;
30053005
30063006 const dropGhost = QueryBuilderFunctions . getDropGhost ( fix ) ;
@@ -3046,7 +3046,7 @@ describe('IgxQueryBuilder', () => {
30463046 keyPress = new KeyboardEvent ( 'keydown' , { key : 'ArrowDown' } ) ;
30473047 for ( let i = 0 ; i <= 10 ; i ++ ) {
30483048 tree . nativeElement . dispatchEvent ( keyPress ) ;
3049- wait ( ) ;
3049+ wait ( 20 ) ;
30503050 fix . detectChanges ( ) ;
30513051
30523052 const dropGhost = QueryBuilderFunctions . getDropGhost ( fix ) ;
0 commit comments