@@ -12,6 +12,7 @@ export class BrowserPage extends InstancePage {
12
12
cssSelectorRows = '[aria-label="row"]' ;
13
13
cssSelectorKey = '[data-testid^=key-]' ;
14
14
cssFilteringLabel = '[data-testid=multi-search]' ;
15
+ cssPrimitiveJsonValue = '[data-testid=json-primitive-value]' ;
15
16
cssJsonValue = '[data-testid=value-as-json]' ;
16
17
cssRowInVirtualizedTable = '[role=gridcell]' ;
17
18
cssVirtualTableRow = '[aria-label=row]' ;
@@ -92,9 +93,9 @@ export class BrowserPage extends InstancePage {
92
93
editStreamLastIdButton = Selector ( '[data-testid^=edit-stream-last-id]' ) ;
93
94
saveButton = Selector ( '[data-testid=save-btn]' ) ;
94
95
bulkActionsButton = Selector ( '[data-testid=btn-bulk-actions]' ) ;
95
- editHashButton = Selector ( '[data-testid^=edit-hash-button -]' ) ;
96
- editZsetButton = Selector ( '[data-testid^=zset-edit-button -]' ) ;
97
- editListButton = Selector ( '[data-testid^=edit-list-button -]' ) ;
96
+ editHashButton = Selector ( '[data-testid^=hash_edit-btn -]' ) ;
97
+ editZsetButton = Selector ( '[data-testid^=zset_edit-btn -]' ) ;
98
+ editListButton = Selector ( '[data-testid^=list_edit-btn -]' ) ;
98
99
cancelStreamGroupBtn = Selector ( '[data-testid=cancel-stream-groups-btn]' ) ;
99
100
patternModeBtn = Selector ( '[data-testid=search-mode-pattern-btn]' ) ;
100
101
redisearchModeBtn = Selector ( '[data-testid=search-mode-redisearch-btn]' ) ;
@@ -159,10 +160,9 @@ export class BrowserPage extends InstancePage {
159
160
ttlText = Selector ( '[data-testid=key-ttl-text] span' ) ;
160
161
hashFieldValueInput = Selector ( '[data-testid=field-value]' ) ;
161
162
hashFieldNameInput = Selector ( '[data-testid=field-name]' ) ;
162
- hashFieldValueEditor = Selector ( '[data-testid=hash-value-editor]' ) ;
163
- listElementEditor = Selector ( '[data-testid=hash-value-editor]' ) ;
163
+ hashFieldValueEditor = Selector ( '[data-testid^=hash_value-editor]' ) ;
164
164
listKeyElementInput = Selector ( '[data-testid=element]' ) ;
165
- listKeyElementEditorInput = Selector ( '[data-testid=element-value- editor]' ) ;
165
+ listKeyElementEditorInput = Selector ( '[data-testid^=list_value- editor-0 ]' ) ;
166
166
stringKeyValueInput = Selector ( '[data-testid=string-value]' ) ;
167
167
jsonKeyValueInput = Selector ( '[data-mode-id=json]' ) ;
168
168
jsonUploadInput = Selector ( '[data-testid=upload-input-file]' ) ;
@@ -199,13 +199,13 @@ export class BrowserPage extends InstancePage {
199
199
keyLengthDetails = Selector ( '[data-testid=key-length-text]' ) ;
200
200
keyNameInTheList = Selector ( this . cssSelectorKey ) ;
201
201
hashFieldsList = Selector ( '[data-testid^=hash-field-] span' ) ;
202
- hashValuesList = Selector ( '[data-testid^=hash-field -value-] span' ) ;
202
+ hashValuesList = Selector ( '[data-testid^=hash_content -value-] span' ) ;
203
203
hashField = Selector ( '[data-testid^=hash-field-]' ) . nth ( 0 ) ;
204
- hashFieldValue = Selector ( '[data-testid^=hash-field -value-]' ) ;
204
+ hashFieldValue = Selector ( '[data-testid^=hash_content -value-]' ) ;
205
205
setMembersList = Selector ( '[data-testid^=set-member-value-]' ) ;
206
206
zsetMembersList = Selector ( '[data-testid^=zset-member-value-]' ) ;
207
- zsetScoresList = Selector ( '[data-testid^=zset-score -value-]' ) ;
208
- listElementsList = Selector ( '[data-testid^=list-element -value-]' ) ;
207
+ zsetScoresList = Selector ( '[data-testid^=zset_content -value-]' ) ;
208
+ listElementsList = Selector ( '[data-testid^=list_content -value-]' ) ;
209
209
jsonKeyValue = Selector ( '[data-testid=json-data]' ) ;
210
210
jsonError = Selector ( '[data-testid=edit-json-error]' ) ;
211
211
tooltip = Selector ( '[role=tooltip]' , { timeout : 500 } ) ;
@@ -614,11 +614,12 @@ export class BrowserPage extends InstancePage {
614
614
}
615
615
616
616
/**
617
- * Edit Zset key score from details
618
- * @param value The value of the key
617
+ * Edit Zset key the firstscore from details
618
+ * @param value The new value of the key
619
619
*/
620
620
async editZsetKeyScore ( value : string ) : Promise < void > {
621
621
await t
622
+ . hover ( this . zsetScoresList )
622
623
. click ( this . editZsetButton )
623
624
. typeText ( this . inlineItemEditor , value , { replace : true , paste : true } )
624
625
. click ( this . applyButton ) ;
@@ -645,11 +646,12 @@ export class BrowserPage extends InstancePage {
645
646
}
646
647
647
648
/**
648
- * Edit Hash key value from details
649
- * @param value The value of the key
649
+ * Edit Hash key the first value from details
650
+ * @param value The new value of the key
650
651
*/
651
652
async editHashKeyValue ( value : string ) : Promise < void > {
652
653
await t
654
+ . hover ( this . hashFieldValue )
653
655
. click ( this . editHashButton )
654
656
. typeText ( this . hashFieldValueEditor , value , { replace : true , paste : true } )
655
657
. click ( this . applyButton ) ;
@@ -666,6 +668,7 @@ export class BrowserPage extends InstancePage {
666
668
*/
667
669
async editListKeyValue ( value : string ) : Promise < void > {
668
670
await t
671
+ . hover ( this . listElementsList )
669
672
. click ( this . editListButton )
670
673
. typeText ( this . listKeyElementEditorInput , value , { replace : true , paste : true } )
671
674
. click ( this . applyButton ) ;
0 commit comments