Skip to content

Commit af745ce

Browse files
authored
Merge pull request #2262 from RedisInsight/e2e/bugfix/e2e-fixes
E2e/bugfix/e2e fixes
2 parents e452650 + 0bb2a99 commit af745ce

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/e2e/pageObjects/auto-discover-redis-enterprise-databases.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class AutoDiscoverREDatabases extends BasePage {
1515
viewDatabasesButton = Selector('[data-testid=btn-view-databases]');
1616
//TEXT INPUTS (also referred to as 'Text fields')
1717
title = Selector('[data-testid=title]');
18-
databaseName = Selector('[data-testid^=db_name_]');
18+
databaseName = Selector('[data-testid^=db_name_]', { timeout: 15000 });
1919

2020
// Get databases name
2121
async getDatabaseName(): Promise<string> {

tests/e2e/tests/critical-path/workbench/command-results.e2e.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ test('Verify that user can see the results found in the table view by default fo
5656
// Send commands and check table view is default
5757
for(const command of commands) {
5858
await workbenchPage.sendCommandInWorkbench(command);
59-
await t.expect(await workbenchPage.queryCardContainer.nth(0).find(workbenchPage.cssTableViewTypeOption).visible).ok(`The table view is not selected by default for command ${command}`);
59+
await t.expect(workbenchPage.queryCardContainer.nth(0).find(workbenchPage.cssTableViewTypeOption).exists).ok(`The table view is not selected by default for command ${command}`);
6060
}
6161
});
6262
test
@@ -73,7 +73,7 @@ test
7373
for (const command of commands) {
7474
await workbenchPage.sendCommandInWorkbench(command);
7575
}
76-
await t.expect(await workbenchPage.queryCardContainer.nth(0).find(workbenchPage.cssTableViewTypeOption).visible)
76+
await t.expect(await workbenchPage.queryCardContainer.nth(0).find(workbenchPage.cssTableViewTypeOption).exists)
7777
.ok('The table view is not selected by default for command FT.SEARCH');
7878
await t.switchToIframe(workbenchPage.iframe);
7979
await t.expect(await workbenchPage.queryTableResult.visible).ok('The table result is not displayed for command FT.SEARCH');
@@ -87,7 +87,7 @@ test('Verify that user can switches between Table and Text for Client List and s
8787
const command = 'CLIENT LIST';
8888
// Send command and check table view is default
8989
await workbenchPage.sendCommandInWorkbench(command);
90-
await t.expect(await workbenchPage.queryCardContainer.nth(0).find(workbenchPage.cssClientListViewTypeOption).visible)
90+
await t.expect(await workbenchPage.queryCardContainer.nth(0).find(workbenchPage.cssClientListViewTypeOption).exists)
9191
.ok('The table view is not selected by default for command CLIENT LIST');
9292
await t.switchToIframe(workbenchPage.iframe);
9393

@@ -124,7 +124,7 @@ test
124124

125125
// Send command and check json view is default for json.get
126126
await workbenchPage.sendCommandInWorkbench(sendCommandsJsonGet.join('\n'));
127-
await t.expect(await workbenchPage.queryCardContainer.nth(0).find(workbenchPage.cssJsonViewTypeOption).visible)
127+
await t.expect(await workbenchPage.queryCardContainer.nth(0).find(workbenchPage.cssJsonViewTypeOption).exists)
128128
.ok('The json view is not selected by default for command JSON.GET');
129129

130130
await t.switchToIframe(workbenchPage.iframe);
@@ -135,7 +135,7 @@ test
135135

136136
await t.switchToMainWindow();
137137
await workbenchPage.sendCommandInWorkbench(sendCommandsJsonMGet.join('\n'));
138-
await t.expect(await workbenchPage.queryCardContainer.nth(0).find(workbenchPage.cssJsonViewTypeOption).visible)
138+
await t.expect(await workbenchPage.queryCardContainer.nth(0).find(workbenchPage.cssJsonViewTypeOption).exists)
139139
.ok('The json view is not selected by default for command JSON.MGET');
140140

141141
await t.switchToIframe(workbenchPage.iframe);

0 commit comments

Comments
 (0)