Skip to content

Commit a282105

Browse files
authored
Merge pull request #2821 from RedisInsight/e2e/bugfix/nightly-failed
fix for zset formatter
2 parents 322d6db + 5126121 commit a282105

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/e2e/tests/web/critical-path/browser/formatters.e2e.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ 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.textType === 'Hash' || key.textType === 'List' || key.textType === 'Sorted Set' || key.textType === 'String') {
196+
if (key.textType === 'Hash' || key.textType === 'List' || key.textType === 'String') {
197197
const editBtn = (key.textType === 'String')
198198
? browserPage.editKeyValueButton
199199
: Selector(`[data-testid*=edit-][data-testid*=${key.keyName.split('-')[0]}]`, { timeout: 500 });
@@ -206,6 +206,13 @@ notEditableFormattersSet.forEach(formatter => {
206206
// Verify tooltip content
207207
await t.expect(browserPage.tooltip.textContent).contains('Cannot edit the value in this format', 'Tooltip has wrong text');
208208
}
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+
}
209216
}
210217
});
211218
});

0 commit comments

Comments
 (0)