@@ -57,11 +57,11 @@ formattersHighlightedSet.forEach(formatter => {
5757 // Verify that value is formatted and highlighted
5858 await t . expect ( valueSelector . find ( browserPage . cssJsonValue ) . exists ) . ok ( `${ key . textType } Value is not formatted to ${ formatter . format } ` ) ;
5959 // Verify that Hash field is formatted and highlighted for JSON and PHP serialized
60- if ( key . keyName === 'hash ' ) {
60+ if ( key . textType === 'Hash ' ) {
6161 await t . expect ( browserPage . hashField . find ( browserPage . cssJsonValue ) . exists ) . ok ( `Hash field is not formatted to ${ formatter . format } ` ) ;
6262 }
6363 // Verify that Stream field is formatted and highlighted for JSON and PHP serialized
64- if ( key . keyName === 'stream ' ) {
64+ if ( key . textType === 'Stream ' ) {
6565 await t . expect ( Selector ( browserPage . cssJsonValue ) . count ) . eql ( 2 , `Hash field is not formatted to ${ formatter . format } ` ) ;
6666 }
6767 }
@@ -193,10 +193,10 @@ notEditableFormattersSet.forEach(formatter => {
193193 // Verify for Protobuf, Java serialized, Pickle
194194 // Verify for Hash, List, ZSet, String keys
195195 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 ' )
198198 ? 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 } ) ;
200200 await browserPage . openKeyDetailsByKeyName ( key . keyName ) ;
201201 await browserPage . selectFormatter ( formatter . format ) ;
202202 // Verify that edit button disabled
@@ -205,8 +205,6 @@ notEditableFormattersSet.forEach(formatter => {
205205 await t . hover ( editBtn ) ;
206206 // Verify tooltip content
207207 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' ) ;
210208 }
211209 }
212210 } ) ;
0 commit comments