@@ -273,20 +273,18 @@ export class BrowserPage {
273
273
* @param value The key value
274
274
*/
275
275
async addStringKey ( keyName : string , value = ' ' , TTL ?: string ) : Promise < void > {
276
- await t
277
- . click ( this . plusAddKeyButton )
278
- . click ( this . keyTypeDropDown )
279
- . click ( this . stringOption )
280
- . click ( this . addKeyNameInput )
281
- . typeText ( this . addKeyNameInput , keyName , { replace : true , paste : true } ) ;
276
+ await t . click ( this . plusAddKeyButton ) ;
277
+ await t . click ( this . keyTypeDropDown ) ;
278
+ await t . click ( this . stringOption ) ;
279
+ await t . click ( this . addKeyNameInput ) ;
280
+ await t . typeText ( this . addKeyNameInput , keyName , { replace : true , paste : true } ) ;
282
281
if ( TTL !== undefined ) {
283
282
await t . click ( this . keyTTLInput )
284
283
. typeText ( this . keyTTLInput , TTL , { replace : true , paste : true } ) ;
285
284
}
286
- await t
287
- . click ( this . stringKeyValueInput )
288
- . typeText ( this . stringKeyValueInput , value )
289
- . click ( this . addKeyButton ) ;
285
+ await t . click ( this . stringKeyValueInput ) ;
286
+ await t . typeText ( this . stringKeyValueInput , value ) ;
287
+ await t . click ( this . addKeyButton ) ;
290
288
}
291
289
292
290
/**
@@ -582,11 +580,10 @@ export class BrowserPage {
582
580
if ( await this . toastCloseButton . exists ) {
583
581
await t . click ( this . toastCloseButton ) ;
584
582
}
585
- await t
586
- . click ( this . addKeyValueItemsButton )
587
- . typeText ( this . hashFieldInput , keyFieldValue , { replace : true , paste : true } )
588
- . typeText ( this . hashValueInput , keyValue , { replace : true , paste : true } )
589
- . click ( this . saveHashFieldButton ) ;
583
+ await t . click ( this . addKeyValueItemsButton ) ;
584
+ await t . typeText ( this . hashFieldInput , keyFieldValue , { replace : true , paste : true } ) ;
585
+ await t . typeText ( this . hashValueInput , keyValue , { replace : true , paste : true } ) ;
586
+ await t . click ( this . saveHashFieldButton ) ;
590
587
}
591
588
592
589
/**
@@ -787,11 +784,10 @@ export class BrowserPage {
787
784
* @param jsonKeyValue The value of the json key
788
785
*/
789
786
async addJsonKeyOnTheSameLevel ( jsonKey : string , jsonKeyValue : string ) : Promise < void > {
790
- await t
791
- . click ( this . addJsonObjectButton )
792
- . typeText ( this . jsonKeyInput , jsonKey , { replace : true , paste : true } )
793
- . typeText ( this . jsonValueInput , jsonKeyValue , { replace : true , paste : true } )
794
- . click ( this . applyButton ) ;
787
+ await t . click ( this . addJsonObjectButton ) ;
788
+ await t . typeText ( this . jsonKeyInput , jsonKey , { replace : true , paste : true } ) ;
789
+ await t . typeText ( this . jsonValueInput , jsonKeyValue , { replace : true , paste : true } ) ;
790
+ await t . click ( this . applyButton ) ;
795
791
}
796
792
797
793
/**
@@ -800,24 +796,22 @@ export class BrowserPage {
800
796
* @param jsonKeyValue The value of the json key
801
797
*/
802
798
async addJsonKeyInsideStructure ( jsonKey : string , jsonKeyValue : string ) : Promise < void > {
803
- await t
804
- . click ( this . expandJsonObject )
805
- . click ( this . addJsonFieldButton )
806
- . typeText ( this . jsonKeyInput , jsonKey , { replace : true , paste : true } )
807
- . typeText ( this . jsonValueInput , jsonKeyValue , { replace : true , paste : true } )
808
- . click ( this . applyButton ) ;
799
+ await t . click ( this . expandJsonObject ) ;
800
+ await t . click ( this . addJsonFieldButton ) ;
801
+ await t . typeText ( this . jsonKeyInput , jsonKey , { replace : true , paste : true } ) ;
802
+ await t . typeText ( this . jsonValueInput , jsonKeyValue , { replace : true , paste : true } ) ;
803
+ await t . click ( this . applyButton ) ;
809
804
}
810
805
811
806
/**
812
807
* Add json structure
813
808
* @param jsonStructure The structure of the json key
814
809
*/
815
810
async addJsonStructure ( jsonStructure : string ) : Promise < void > {
816
- await t
817
- . click ( this . expandJsonObject )
818
- . click ( this . editJsonObjectButton )
819
- . typeText ( this . jsonValueInput , jsonStructure , { replace : true , paste : true } )
820
- . click ( this . applyEditButton ) ;
811
+ await t . click ( this . expandJsonObject ) ;
812
+ await t . click ( this . editJsonObjectButton ) ;
813
+ await t . typeText ( this . jsonValueInput , jsonStructure , { replace : true , paste : true } ) ;
814
+ await t . click ( this . applyEditButton ) ;
821
815
}
822
816
823
817
/**
@@ -932,10 +926,9 @@ export class BrowserPage {
932
926
*/
933
927
async openStreamPendingsView ( keyName : string ) : Promise < void > {
934
928
await this . openKeyDetails ( keyName ) ;
935
- await t
936
- . click ( this . streamTabGroups )
937
- . click ( this . consumerGroup )
938
- . click ( this . streamConsumerName ) ;
929
+ await t . click ( this . streamTabGroups ) ;
930
+ await t . click ( this . consumerGroup ) ;
931
+ await t . click ( this . streamConsumerName ) ;
939
932
}
940
933
941
934
/**
0 commit comments