Skip to content

Commit fd4f50d

Browse files
Merge pull request #92 from RedisInsight/feature/e2e-plugin
e2e - table view test
2 parents 41dc32d + ddc83cd commit fd4f50d

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

tests/e2e/pageObjects/workbench-page.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export class WorkbenchPage {
77
cssReRunCommandButton: string
88
cssDeleteCommandButton: string
99
cssQueryCardOutputResponceSuccess: string
10+
cssTableViewTypeOption: string
1011
//------------------------------------------------------------------------------------------
1112
//DECLARATION OF TYPES: DOM ELEMENTS and UI COMPONENTS
1213
//*Assign the 'Selector' type to any element/component nested within the constructor.
@@ -52,6 +53,7 @@ export class WorkbenchPage {
5253
this.cssReRunCommandButton = '[data-testid=re-run-command]';
5354
this.cssDeleteCommandButton = '[data-testid=delete-command]';
5455
this.cssQueryCardOutputResponceSuccess = '[data-testid=query-card-output-response-success]';
56+
this.cssTableViewTypeOption = '[data-testid=view-type-selected-Plugin-redisearch__redisearch]';
5557
//-------------------------------------------------------------------------------------------
5658
//DECLARATION OF SELECTORS
5759
//*Declare all elements/components of the relevant page.

tests/e2e/tests/critical-path/cli/cli-critical.e2e.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ fixture `CLI critical`
2929
await userAgreementPage.acceptLicenseTerms();
3030
await t.expect(addRedisDatabasePage.addDatabaseButton.exists).ok('The add redis database view', {timeout: 20000});
3131
})
32-
test
32+
//skipped due the bug RI-2156
33+
test.skip
3334
.after(async t => {
3435
//Clear database
3536
await t.typeText(cliPage.cliCommandInput, 'FLUSHDB');

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,15 @@ test('Verify that user can delete command with result from table with results in
6464
//Verify that deleted command is not in results
6565
await t.expect(workbenchPage.queryCardCommand.withExactText(commandForSend1).exists).notOk(`Command ${commandForSend1} is deleted from table with results`);
6666
});
67+
test('Verify that user can see the results found in the table view by default for FT.INFO, FT.SEARCH and FT.AGGREGATE', async t => {
68+
const commands = [
69+
'FT.INFO',
70+
'FT.SEARCH',
71+
'FT.AGGREGATE'
72+
];
73+
//Send commands and check table view is default
74+
for(let command of commands) {
75+
await workbenchPage.sendCommandInWorkbench(command);
76+
await t.expect(await workbenchPage.queryCardContainer.nth(0).find(workbenchPage.cssTableViewTypeOption).visible).ok(`The table view is selected by default for command ${command}`);
77+
}
78+
});

0 commit comments

Comments
 (0)