Skip to content

Commit b514cd5

Browse files
Merge pull request #3067 from RedisInsight/e2e/bugfix/main
fix regression tests
2 parents 65b8861 + da62a3f commit b514cd5

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

tests/e2e/common-actions/workbench-actions.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,14 @@ export class WorkbenchActions {
2828
await t.click(workbenchPage.selectViewType)
2929
.click(workbenchPage.viewTypeOptionClientList);
3030
await t.switchToIframe(workbenchPage.iframe);
31-
await t.expect(Selector('tbody tr').count).eql(numberOfRowsInTextView);
31+
const paginationSelector = Selector('a[data-test-subj=pagination-button-next]');
32+
const tableRow = Selector('tbody tr');
33+
let rowCount = await tableRow.count;
34+
if(await paginationSelector.visible) {
35+
await t.click(paginationSelector);
36+
rowCount += await tableRow.count;
37+
}
38+
await t.expect(rowCount).eql(numberOfRowsInTextView);
3239
}
3340
/**
3441
Verify error message after `client list` command if there is no permission to run

tests/e2e/tests/web/critical-path/url-handling/url-handling.e2e.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ test
7676
memoryLimitMeasurementUnit: 'mb',
7777
free: 'true'
7878
};
79-
console.log('!!!!');
80-
console.log(generateLink(connectUrlParams));
79+
8180
await t.navigateTo(generateLink(connectUrlParams));
8281
await t.wait(10_000);
8382
await t.expect(workbenchPage.submitCommandButton.exists).ok('Redirection to Workbench is not correct');

0 commit comments

Comments
 (0)