Skip to content

Commit 237ffb8

Browse files
fix tests
1 parent bcdb165 commit 237ffb8

File tree

20 files changed

+36
-36
lines changed

20 files changed

+36
-36
lines changed

tests/e2e/helpers/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export enum ResourcePath {
7777
}
7878

7979
export enum ExploreTabs {
80-
Explore = 'Explore',
80+
Tutorials = 'Tutorials',
8181
Tips = 'Tips',
8282
}
8383

tests/e2e/pageObjects/components/insights-panel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ export class InsightsPanel {
3737
* Click on Panel tab
3838
* @param type of the tab
3939
*/
40-
async setActiveTab(type: ExploreTabs.Explore): Promise<ExploreTab>
40+
async setActiveTab(type: ExploreTabs.Tutorials): Promise<ExploreTab>
4141
async setActiveTab(type: ExploreTabs.Tips): Promise<RecommendationsTab>
4242
async setActiveTab(type: ExploreTabs): Promise<ExploreTab | RecommendationsTab> {
4343
const activeTabName = await this.getActiveTabName();
44-
if(type === ExploreTabs.Explore) {
44+
if(type === ExploreTabs.Tutorials) {
4545
if(type !== activeTabName) {
4646
await t.click(this.exploreTab);
4747
}

tests/e2e/tests/electron/critical-path/files-auto-update/enablement-area-autoupdate.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if (fs.existsSync(workingDirectory)) {
5050

5151
// Check Enablement area and validate that removed file is existed in Guides
5252
await workbenchPage.InsightsPanel.togglePanel(true);
53-
const tab = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Explore);
53+
const tab = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Tutorials);
5454
await t.click(tab.guidesGraphAccordion);
5555
await t.click(tab.guidesIntroductionGraphLink.nth(1));
5656
await t.expect(tab.enablementAreaEmptyContent.visible).notOk('Guides folder is not updated');

tests/e2e/tests/electron/regression/workbench/redis-stack-commands.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fixture `Redis Stack command in Workbench`
2929
test.skip('Verify that user can switches between Graph and Text for GRAPH command and see results corresponding to their views', async t => {
3030
// Send Graph command
3131
await workbenchPage.InsightsPanel.togglePanel(true);
32-
const tutorials = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Explore);
32+
const tutorials = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Tutorials);
3333
await t.click(tutorials.redisStackTutorialsButton);
3434
await t.click(tutorials.tutorialsWorkingWithGraphLink);
3535
await tutorials.runBlockCode('Create a bike node');
@@ -46,7 +46,7 @@ test.skip('Verify that user can switches between Graph and Text for GRAPH comman
4646
test.skip('Verify that user can see "No data to visualize" message for Graph command', async t => {
4747
// Send Graph command
4848
await workbenchPage.InsightsPanel.togglePanel(true);
49-
const tutorials = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Explore);
49+
const tutorials = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Tutorials);
5050
await t.click(tutorials.redisStackTutorialsButton);
5151
await tutorials.runBlockCode('Show all sales per region');
5252
await t.click(workbenchPage.submitCommandButton);

tests/e2e/tests/web/critical-path/cluster-details/cluster-details.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ test
7676
}
7777
//Run Create hash index command to load network and memory
7878
await clusterDetailsPage.InsightsPanel.togglePanel(true);
79-
const tutorials = await clusterDetailsPage.InsightsPanel.setActiveTab(ExploreTabs.Explore);
79+
const tutorials = await clusterDetailsPage.InsightsPanel.setActiveTab(ExploreTabs.Tutorials);
8080

8181
await t.click(tutorials.dataStructureAccordionTutorialButton);
8282
await t.click(tutorials.internalLinkWorkingWithHashes);

tests/e2e/tests/web/critical-path/database-overview/database-overview.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,16 @@ test
151151
})('Verify that user can see additional information in Overview: Connected Clients, Commands/Sec, CPU (%) using Standalone DB connection type', async t => {
152152
const commandsSecBeforeEdit = await browserPage.OverviewPanel.overviewCommandsSec.textContent;
153153
await browserPage.OverviewPanel.waitForCpuIsCalculated();
154-
const cpuBeforeEdit = (await browserPage.OverviewPanel.overviewCpu.textContent).split(' ')[0];
155154
//Verify that additional information in Overview: Connected Clients, Commands/Sec, CPU (%) is displayed
156155
await t.expect(browserPage.OverviewPanel.overviewConnectedClients.exists).ok('Connected Clients is dispalyed in the Overview');
157156
await t.expect(browserPage.OverviewPanel.overviewCommandsSec.exists).ok('Commands/Sec is dispalyed in the Overview');
158157
await t.expect(browserPage.OverviewPanel.overviewCpu.exists).ok('CPU (%) is dispalyed in the Overview');
159158
//Run Create hash index command
160159
await browserPage.InsightsPanel.togglePanel(true);
161-
const tutorials = await browserPage.InsightsPanel.setActiveTab(ExploreTabs.Explore);
160+
const tutorials = await browserPage.InsightsPanel.setActiveTab(ExploreTabs.Tutorials);
162161
await t.click(tutorials.dataStructureAccordionTutorialButton);
163162
await t.click(tutorials.internalLinkWorkingWithHashes);
163+
const cpuBeforeEdit = (await browserPage.OverviewPanel.overviewCpu.textContent).split(' ')[0];
164164
await tutorials.runBlockCode('Create a hash');
165165
//Verify that CPU and commands per second parameters are changed
166166
const commandsSecAfterEdit = await browserPage.OverviewPanel.overviewCommandsSec.textContent;

tests/e2e/tests/web/critical-path/memory-efficiency/recommendations.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ test.skip
190190
// Verify that tutorial opened
191191
await t.click(memoryEfficiencyPage.getToTutorialBtnByRecomName(searchJsonRecommendation));
192192
await workbenchPage.InsightsPanel.togglePanel(true);
193-
await t.expect(await workbenchPage.InsightsPanel.getActiveTabName()).eql(ExploreTabs.Explore);
194-
const tutorial = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Explore);
193+
await t.expect(await workbenchPage.InsightsPanel.getActiveTabName()).eql(ExploreTabs.Tutorials);
194+
const tutorial = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Tutorials);
195195
await t.expect(tutorial.preselectArea.visible).ok('Workbench Enablement area not opened');
196196
// Verify that REDIS FOR TIME SERIES tutorial expanded
197197
await t.expect(tutorial.getTutorialByName('INTRODUCTION').visible).ok('INTRODUCTION tutorial is not expanded');

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ test
8080
await t.navigateTo(generateLink(connectUrlParams));
8181
await t.wait(10_000);
8282
await t.expect(workbenchPage.submitCommandButton.exists).ok('Redirection to Workbench is not correct');
83-
const tab = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Explore);
83+
const tab = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Tutorials);
8484
await t.expect(tab.preselectArea.textContent).contains('INTRODUCTION', 'the tutorial page is incorrect');
8585
await t.expect(tab.preselectArea.textContent).contains('JSON', 'the tutorial is incorrect');
8686

tests/e2e/tests/web/critical-path/workbench/default-scripts-area.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ test
5353
await workbenchPage.sendCommandInWorkbench(commandsForSend.join('\n'));
5454
// Run automatically added "FT._LIST" and "FT.INFO {index}" scripts
5555
await workbenchPage.InsightsPanel.togglePanel(true);
56-
const tutorials = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Explore);
56+
const tutorials = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Tutorials);
5757
await t.click(tutorials.dataStructureAccordionTutorialButton);
5858
await t.click(tutorials.internalLinkWorkingWithHashes);
5959

tests/e2e/tests/web/regression/insights/import-tutorials.e2e.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ test
6868

6969
// Verify that user can see the “MY TUTORIALS” section in the Enablement area.
7070
await workbenchPage.InsightsPanel.togglePanel(true);
71-
const tutorials = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Explore);
71+
const tutorials = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Tutorials);
7272

7373
await t.expect(tutorials.customTutorials.visible).ok('custom tutorials sections is not visible');
7474
await t.click(tutorials.tutorialOpenUploadButton);
@@ -123,7 +123,7 @@ test
123123
test.skip
124124
.after(async() => {
125125
tutorialName = 'Tutorials with manifest';
126-
const tutorials = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Explore);
126+
const tutorials = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Tutorials);
127127
if(await tutorials.tutorialAccordionButton.withText(tutorialName).exists) {
128128
await tutorials.deleteTutorialByName(tutorialName);
129129
}
@@ -136,7 +136,7 @@ test.skip
136136
const summary = 'Summary for JSON';
137137

138138
await workbenchPage.InsightsPanel.togglePanel(true);
139-
const tutorials = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Explore);
139+
const tutorials = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Tutorials);
140140
await t.click(tutorials.tutorialOpenUploadButton);
141141
// Verify that user can upload tutorials using a URL
142142
await t.typeText(tutorials.tutorialLinkField, link);
@@ -180,7 +180,7 @@ test
180180
// Clear and delete database
181181
await t.click(myRedisDatabasePage.NavigationPanel.workbenchButton);
182182
await workbenchPage.InsightsPanel.togglePanel(true);
183-
const tutorials = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Explore);
183+
const tutorials = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Tutorials);
184184
await tutorials.deleteTutorialByName(tutorialName);
185185
await t.expect(tutorials.tutorialAccordionButton.withText(tutorialName).exists)
186186
.notOk(`${tutorialName} tutorial is not deleted`);
@@ -195,7 +195,7 @@ test
195195

196196
// Upload custom tutorial
197197
await workbenchPage.InsightsPanel.togglePanel(true);
198-
const tutorials = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Explore);
198+
const tutorials = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Tutorials);
199199
await t
200200
.click(tutorials.tutorialOpenUploadButton)
201201
.setFilesToUpload(tutorials.tutorialImport, [zipFilePath])

0 commit comments

Comments
 (0)