Skip to content

Commit 2b6df24

Browse files
committed
fixes
1 parent e452650 commit 2b6df24

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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)