File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
tests/e2e/tests/web/critical-path/browser Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ notEditableFormattersSet.forEach(formatter => {
193
193
// Verify for Protobuf, Java serialized, Pickle
194
194
// Verify for Hash, List, ZSet, String keys
195
195
for ( const key of keysData ) {
196
- if ( key . textType === 'Hash' || key . textType === 'List' || key . textType === 'Sorted Set' || key . textType === ' String') {
196
+ if ( key . textType === 'Hash' || key . textType === 'List' || key . textType === 'String' ) {
197
197
const editBtn = ( key . textType === 'String' )
198
198
? browserPage . editKeyValueButton
199
199
: Selector ( `[data-testid*=edit-][data-testid*=${ key . keyName . split ( '-' ) [ 0 ] } ]` , { timeout : 500 } ) ;
@@ -206,6 +206,13 @@ notEditableFormattersSet.forEach(formatter => {
206
206
// Verify tooltip content
207
207
await t . expect ( browserPage . tooltip . textContent ) . contains ( 'Cannot edit the value in this format' , 'Tooltip has wrong text' ) ;
208
208
}
209
+ if ( key . textType === 'Sorted Set' ) {
210
+ const editBtn = Selector ( `[data-testid*=edit-][data-testid*=${ key . keyName . split ( '-' ) [ 0 ] } ]` , { timeout : 500 } ) ;
211
+ await browserPage . openKeyDetailsByKeyName ( key . keyName ) ;
212
+ await browserPage . selectFormatter ( formatter . format ) ;
213
+ // Verify that edit button enabled for ZSet
214
+ await t . expect ( editBtn . hasAttribute ( 'disabled' ) ) . notOk ( `Key ${ key . textType } is disabled for ${ formatter . format } formatter` ) ;
215
+ }
209
216
}
210
217
} ) ;
211
218
} ) ;
You can’t perform that action at this time.
0 commit comments