@@ -57,11 +57,11 @@ formattersHighlightedSet.forEach(formatter => {
57
57
// Verify that value is formatted and highlighted
58
58
await t . expect ( valueSelector . find ( browserPage . cssJsonValue ) . exists ) . ok ( `${ key . textType } Value is not formatted to ${ formatter . format } ` ) ;
59
59
// Verify that Hash field is formatted and highlighted for JSON and PHP serialized
60
- if ( key . keyName === 'hash ' ) {
60
+ if ( key . textType === 'Hash ' ) {
61
61
await t . expect ( browserPage . hashField . find ( browserPage . cssJsonValue ) . exists ) . ok ( `Hash field is not formatted to ${ formatter . format } ` ) ;
62
62
}
63
63
// Verify that Stream field is formatted and highlighted for JSON and PHP serialized
64
- if ( key . keyName === 'stream ' ) {
64
+ if ( key . textType === 'Stream ' ) {
65
65
await t . expect ( Selector ( browserPage . cssJsonValue ) . count ) . eql ( 2 , `Hash field is not formatted to ${ formatter . format } ` ) ;
66
66
}
67
67
}
@@ -193,10 +193,10 @@ 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 . keyName === 'hash ' || key . keyName === 'list ' || key . keyName === 'zset ' || key . keyName === 'string ' ) {
197
- const editBtn = ( key . keyName === 'string ' )
196
+ if ( key . textType === 'Hash ' || key . textType === 'List ' || key . textType === 'Sorted Set ' || key . textType === 'String ' ) {
197
+ const editBtn = ( key . textType === 'String ' )
198
198
? browserPage . editKeyValueButton
199
- : Selector ( `[data-testid^ =edit-][data-testid*=${ key . keyName . split ( '-' ) [ 0 ] } ]` ) ;
199
+ : Selector ( `[data-testid* =edit-][data-testid*=${ key . keyName . split ( '-' ) [ 0 ] } ]` , { timeout : 500 } ) ;
200
200
await browserPage . openKeyDetailsByKeyName ( key . keyName ) ;
201
201
await browserPage . selectFormatter ( formatter . format ) ;
202
202
// Verify that edit button disabled
@@ -205,8 +205,6 @@ notEditableFormattersSet.forEach(formatter => {
205
205
await t . hover ( editBtn ) ;
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
- await t . click ( editBtn ) ;
209
- await t . expect ( browserPage . applyButton . exists ) . notOk ( 'Edit field is displayed even if disabled' ) ;
210
208
}
211
209
}
212
210
} ) ;
0 commit comments