@@ -7,6 +7,7 @@ import { EntityItems } from "./AssertHelper";
77import EditorNavigator from "./EditorNavigation" ;
88import { EntityType } from "./EditorNavigation" ;
99import ClickOptions = Cypress . ClickOptions ;
10+ import { DEBOUNCE_WAIT_TIME_ON_INPUT_CHANGE } from "../../../src/constants/WidgetConstants" ;
1011
1112type ElementType = string | JQuery < HTMLElement > ;
1213
@@ -945,10 +946,13 @@ export class AggregateHelper {
945946 . focus ( )
946947 . type ( "{backspace}" . repeat ( charCount ) , { timeout : 2 , force : true } )
947948 . wait ( 50 )
948- . type ( totype ) ;
949+ . type ( totype , { delay : DEBOUNCE_WAIT_TIME_ON_INPUT_CHANGE } ) ;
949950 else {
950951 if ( charCount == - 1 ) this . GetElement ( selector ) . eq ( index ) . clear ( ) ;
951- this . TypeText ( selector , totype , index ) ;
952+ this . TypeText ( selector , totype , {
953+ index,
954+ delay : DEBOUNCE_WAIT_TIME_ON_INPUT_CHANGE ,
955+ } ) ;
952956 }
953957 }
954958
@@ -973,7 +977,10 @@ export class AggregateHelper {
973977 force = false ,
974978 ) {
975979 this . ClearTextField ( selector , force , index ) ;
976- return this . TypeText ( selector , totype , index ) ;
980+ return this . TypeText ( selector , totype , {
981+ index,
982+ delay : DEBOUNCE_WAIT_TIME_ON_INPUT_CHANGE ,
983+ } ) ;
977984 }
978985
979986 public TypeText (
@@ -1323,7 +1330,10 @@ export class AggregateHelper {
13231330 toClear && this . ClearInputText ( name ) ;
13241331 cy . xpath ( this . locator . _inputWidgetValueField ( name , isInput ) )
13251332 . trigger ( "click" )
1326- . type ( input , { parseSpecialCharSequences : false } ) ;
1333+ . type ( input , {
1334+ parseSpecialCharSequences : false ,
1335+ delay : DEBOUNCE_WAIT_TIME_ON_INPUT_CHANGE ,
1336+ } ) ;
13271337 }
13281338
13291339 public ClearInputText ( name : string , isInput = true ) {
0 commit comments