@@ -2716,7 +2716,7 @@ describe('IgxQueryBuilder', () => {
27162716 expect ( QueryBuilderFunctions . getChipContent ( chipComponents [ 2 ] . nativeElement ) ) . toBe ( "OrderDate Today" ) ;
27172717 } ) ;
27182718
2719- it ( 'should drop the condition at the last position of the root group when dropped above the buttons.' , ( ) => {
2719+ it ( 'should drop the condition at the last position of the root group when dropped above the buttons.' , async ( ) => {
27202720 const draggedChip = chipComponents [ 5 ] . componentInstance ; // "OrderDate Today" chip
27212721 const draggedChipCenter = QueryBuilderFunctions . getElementCenter ( draggedChip . chipArea . nativeElement ) ;
27222722 const dragDir = draggedChip . dragDirective ;
@@ -2744,7 +2744,7 @@ describe('IgxQueryBuilder', () => {
27442744
27452745 //drop condition
27462746 dragDir . onPointerUp ( { pointerId : 1 , pageX : addConditionButtonCenter . X , pageY : addConditionButtonCenter . Y } ) ;
2747- wait ( 20 ) ;
2747+ await wait ( 20 ) ;
27482748 fix . detectChanges ( ) ;
27492749
27502750 const exprTree = JSON . stringify ( fix . componentInstance . queryBuilder . expressionTree , null , 2 ) ;
@@ -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 ( 20 ) ;
2963+ await 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 ( 20 ) ;
3003+ await 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 ( 20 ) ;
3049+ await wait ( 20 ) ;
30503050 fix . detectChanges ( ) ;
30513051
30523052 const dropGhost = QueryBuilderFunctions . getDropGhost ( fix ) ;
0 commit comments