Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/e2e/pageObjects/browser-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class BrowserPage extends InstancePage {
removeConsumerGroupButton = Selector('[data-testid^=remove-groups-button]');
optionalParametersSwitcher = Selector('[data-testid=optional-parameters-switcher]');
forceClaimCheckbox = Selector('[data-testid=force-claim-checkbox]').sibling();
editStreamLastIdButton = Selector('[data-testid^=edit-stream-last-id]');
editStreamLastIdButton = Selector('[data-testid^=stream-group_edit-btn]');
saveButton = Selector('[data-testid=save-btn]');
bulkActionsButton = Selector('[data-testid=btn-bulk-actions]');
editHashButton = Selector('[data-testid^=hash_edit-btn-]');
Expand Down Expand Up @@ -181,7 +181,7 @@ export class BrowserPage extends InstancePage {
streamEntryId = Selector('[data-testid=entryId]');
streamField = Selector('[data-testid=field-name]');
streamValue = Selector('[data-testid=field-value]');
addStreamRow = Selector('[data-testid=add-new-item]');
addStreamRow = Selector('[data-testid=add-item]');
streamFieldsValues = Selector('[data-testid^=stream-entry-field-]');
streamEntryIDDateValue = Selector('[data-testid^=stream-entry-][data-testid$=date]');
streamRangeEndInput = Selector('[data-testid=range-end-input]');
Expand Down Expand Up @@ -652,7 +652,7 @@ export class BrowserPage extends InstancePage {
await t.click(this.addKeyValueItemsButton);
await t.typeText(this.hashFieldInput, keyFieldValue, { replace: true, paste: true });
await t.typeText(this.hashValueInput, keyValue, { replace: true, paste: true });
if(fieldTtl !== ' '){
if(fieldTtl !== ''){
await t.typeText(this.hashTtlFieldInput, fieldTtl, { replace: true, paste: true });
}
await t.click(this.saveHashFieldButton);
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/test-data/formatters/JSON.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ export const JSONFormatter = {
format: 'JSON',
fromText: '{ "field": "value" }',
fromTextEdit: '{ "field": "value123" }',
fromBigInt: '{ "field": 5951.123145678120495423 }'
fromBigInt: '{ "field": 248480010225057793 }'
};
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ test('Verify that user can delete a Consumer Group', async t => {
// Verify that user can change the ID set for the Consumer Group when click on the Pencil button
for (const id of entryIds) {
const idBefore = await browserPage.streamGroupId.textContent;
await t.hover(browserPage.streamGroupId);
await t.click(browserPage.editStreamLastIdButton);
await t.typeText(browserPage.lastIdInput, id, { replace: true, paste: true });
await t.click(browserPage.saveButton);
Expand Down
3 changes: 2 additions & 1 deletion tests/e2e/tests/web/regression/browser/consumer-group.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@ test('Verify that user can see error message if enter invalid last delivered ID'
await browserPage.openKeyDetails(keyName);
await t.click(browserPage.streamTabGroups);
// Change the ID set for the Consumer Group
await t.hover(browserPage.streamGroupId);
await t.click(browserPage.editStreamLastIdButton);
for(const id of invalidEntryIds){
const idBefore = await browserPage.streamGroupId.textContent;
await t.click(browserPage.editStreamLastIdButton);
await t.typeText(browserPage.lastIdInput, id, { replace: true, paste: true });
await t.click(browserPage.saveButton);
await t.expect(browserPage.streamGroupId.textContent).eql(idBefore, 'The last delivered ID is not modified');
Expand Down