@@ -405,9 +405,8 @@ export class BrowserPage extends InstancePage {
405
405
* @param TTL The Time to live value of the key
406
406
* @param field The field name of the key
407
407
* @param value The value of the key
408
- * @param ttl The ttl of the field for Redis databases 7.4 and higher
409
- */
410
- async addHashKey ( keyName : string , TTL = ' ' , field = ' ' , value = ' ' , ttl = '' ) : Promise < void > {
408
+ * @param fieldTtl The ttl of the field for Redis databases 7.4 and higher*/
409
+ async addHashKey ( keyName : string , TTL = ' ' , field = ' ' , value = ' ' , fieldTtl = '' ) : Promise < void > {
411
410
if ( await this . Toast . toastCloseButton . exists ) {
412
411
await t . click ( this . Toast . toastCloseButton ) ;
413
412
}
@@ -422,8 +421,8 @@ export class BrowserPage extends InstancePage {
422
421
await t . typeText ( this . keyTTLInput , TTL , { replace : true , paste : true } ) ;
423
422
await t . typeText ( this . hashFieldNameInput , field , { replace : true , paste : true } ) ;
424
423
await t . typeText ( this . hashFieldValueInput , value , { replace : true , paste : true } ) ;
425
- if ( ttl !== '' ) {
426
- await t . typeText ( this . hashTtlFieldInput , ttl , { replace : true , paste : true } ) ;
424
+ if ( fieldTtl !== '' ) {
425
+ await t . typeText ( this . hashTtlFieldInput , fieldTtl , { replace : true , paste : true } ) ;
427
426
}
428
427
await t . click ( this . addKeyButton ) ;
429
428
}
@@ -644,17 +643,17 @@ export class BrowserPage extends InstancePage {
644
643
* Add field to hash key
645
644
* @param keyFieldValue The value of the hash field
646
645
* @param keyValue The hash value
647
- * @param tll The hash field ttl value for Redis databases 7.4 and higher
646
+ * @param fieldTtl The hash field ttl value for Redis databases 7.4 and higher
648
647
*/
649
- async addFieldToHash ( keyFieldValue : string , keyValue : string , ttl = '' ) : Promise < void > {
648
+ async addFieldToHash ( keyFieldValue : string , keyValue : string , fieldTtl = '' ) : Promise < void > {
650
649
if ( await this . Toast . toastCloseButton . exists ) {
651
650
await t . click ( this . Toast . toastCloseButton ) ;
652
651
}
653
652
await t . click ( this . addKeyValueItemsButton ) ;
654
653
await t . typeText ( this . hashFieldInput , keyFieldValue , { replace : true , paste : true } ) ;
655
654
await t . typeText ( this . hashValueInput , keyValue , { replace : true , paste : true } ) ;
656
- if ( ttl !== ' ' ) {
657
- await t . typeText ( this . hashTtlFieldInput , ttl , { replace : true , paste : true } ) ;
655
+ if ( fieldTtl !== ' ' ) {
656
+ await t . typeText ( this . hashTtlFieldInput , fieldTtl , { replace : true , paste : true } ) ;
658
657
}
659
658
await t . click ( this . saveHashFieldButton ) ;
660
659
}
@@ -674,13 +673,13 @@ export class BrowserPage extends InstancePage {
674
673
/**
675
674
* Edit Hash field ttl value
676
675
* @param fieldName The field name
677
- * @param tll The hash field ttl value for Redis databases 7.4 and higher
676
+ * @param fieldTtl The hash field ttl value for Redis databases 7.4 and higher
678
677
*/
679
- async editHashFieldTtlValue ( fieldName : string , ttl : string ) : Promise < void > {
678
+ async editHashFieldTtlValue ( fieldName : string , fieldTtl : string ) : Promise < void > {
680
679
await t
681
680
. hover ( this . getHashTtlFieldInput ( fieldName ) )
682
681
. click ( this . editHashFieldTtlButton )
683
- . typeText ( this . inlineItemEditor , ttl , { replace : true , paste : true } )
682
+ . typeText ( this . inlineItemEditor , fieldTtl , { replace : true , paste : true } )
684
683
. click ( this . applyButton ) ;
685
684
}
686
685
0 commit comments