Skip to content

Commit 9238e80

Browse files
fix comment
1 parent 32fa4ce commit 9238e80

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

tests/e2e/pageObjects/browser-page.ts

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,8 @@ export class BrowserPage extends InstancePage {
405405
* @param TTL The Time to live value of the key
406406
* @param field The field name of the key
407407
* @param value The value of the key
408-
* @param ttl The ttl of the field for Redis databases 7.4 and higher
409-
*/
410-
async addHashKey(keyName: string, TTL = ' ', field = ' ', value = ' ', ttl = ''): Promise<void> {
408+
* @param fieldTtl The ttl of the field for Redis databases 7.4 and higher*/
409+
async addHashKey(keyName: string, TTL = ' ', field = ' ', value = ' ', fieldTtl = ''): Promise<void> {
411410
if (await this.Toast.toastCloseButton.exists) {
412411
await t.click(this.Toast.toastCloseButton);
413412
}
@@ -422,8 +421,8 @@ export class BrowserPage extends InstancePage {
422421
await t.typeText(this.keyTTLInput, TTL, { replace: true, paste: true });
423422
await t.typeText(this.hashFieldNameInput, field, { replace: true, paste: true });
424423
await t.typeText(this.hashFieldValueInput, value, { replace: true, paste: true });
425-
if(ttl !== ''){
426-
await t.typeText(this.hashTtlFieldInput, ttl, { replace: true, paste: true });
424+
if(fieldTtl !== ''){
425+
await t.typeText(this.hashTtlFieldInput, fieldTtl, { replace: true, paste: true });
427426
}
428427
await t.click(this.addKeyButton);
429428
}
@@ -644,17 +643,17 @@ export class BrowserPage extends InstancePage {
644643
* Add field to hash key
645644
* @param keyFieldValue The value of the hash field
646645
* @param keyValue The hash value
647-
* @param tll The hash field ttl value for Redis databases 7.4 and higher
646+
* @param fieldTtl The hash field ttl value for Redis databases 7.4 and higher
648647
*/
649-
async addFieldToHash(keyFieldValue: string, keyValue: string, ttl = ''): Promise<void> {
648+
async addFieldToHash(keyFieldValue: string, keyValue: string, fieldTtl = ''): Promise<void> {
650649
if (await this.Toast.toastCloseButton.exists) {
651650
await t.click(this.Toast.toastCloseButton);
652651
}
653652
await t.click(this.addKeyValueItemsButton);
654653
await t.typeText(this.hashFieldInput, keyFieldValue, { replace: true, paste: true });
655654
await t.typeText(this.hashValueInput, keyValue, { replace: true, paste: true });
656-
if(ttl !== ' '){
657-
await t.typeText(this.hashTtlFieldInput, ttl, { replace: true, paste: true });
655+
if(fieldTtl !== ' '){
656+
await t.typeText(this.hashTtlFieldInput, fieldTtl, { replace: true, paste: true });
658657
}
659658
await t.click(this.saveHashFieldButton);
660659
}
@@ -674,13 +673,13 @@ export class BrowserPage extends InstancePage {
674673
/**
675674
* Edit Hash field ttl value
676675
* @param fieldName The field name
677-
* @param tll The hash field ttl value for Redis databases 7.4 and higher
676+
* @param fieldTtl The hash field ttl value for Redis databases 7.4 and higher
678677
*/
679-
async editHashFieldTtlValue(fieldName: string, ttl: string): Promise<void> {
678+
async editHashFieldTtlValue(fieldName: string, fieldTtl: string): Promise<void> {
680679
await t
681680
.hover(this.getHashTtlFieldInput(fieldName))
682681
.click(this.editHashFieldTtlButton)
683-
.typeText(this.inlineItemEditor, ttl, { replace: true, paste: true })
682+
.typeText(this.inlineItemEditor, fieldTtl, { replace: true, paste: true })
684683
.click(this.applyButton);
685684
}
686685

0 commit comments

Comments
 (0)