Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/e2e/pageObjects/components/overview-panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class OverviewPanel {
overviewCpu = Selector('[data-test-subj=overview-cpu]');
overviewConnectedClients = Selector('[data-test-subj=overview-connected-clients]');
overviewCommandsSec = Selector('[data-test-subj=overview-commands-sec]');
overviewSpinner = Selector('[class^= euiLoadingSpinner--medium]');
overviewSpinner = Selector('[class*=euiLoadingSpinner--medium]');
// BUTTONS
myRedisDBLink = Selector('[data-testid=my-redis-db-btn]', { timeout: 1000 });
overviewRedisStackLogo = Selector('[data-testid=redis-stack-logo]');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ test
await databaseAPIRequests.deleteAllDatabasesApi();
})('Verify that insights panel can be opened from Welcome and Overview pages', async t => {
const welcomeTutorial = 'JSON';
const myRedisTutorial = 'Time series';
const myRedisTutorial = 'How To Query Your Data';

await t.click(browserPage.NavigationPanel.myRedisDBButton);
await myRedisDatabasePage.CompatibilityPromotion.clickOnLinkByName(Compatibility.TimeSeries);
await myRedisDatabasePage.CompatibilityPromotion.clickOnLinkByName(Compatibility.SearchAndQuery);
await t.expect(await myRedisDatabasePage.InsightsPanel.getActiveTabName()).eql(ExploreTabs.Explore);
let tab = await myRedisDatabasePage.InsightsPanel.setActiveTab(ExploreTabs.Explore);
await t.expect(tab.preselectArea.textContent).contains(myRedisTutorial, 'the tutorial is incorrect');
await t.click(tab.nextPageButton);
await tab.runBlockCode('Create time series for each shop');
await tab.runBlockCode('Create the bike shop idx:bicycle');
await t.expect(tab.openDatabasePopover.exists).ok('Open a database popover is not displayed');
await myRedisDatabasePage.InsightsPanel.togglePanel(false);
await myRedisDatabasePage.deleteAllDatabases();
Expand All @@ -96,6 +96,7 @@ test
await t.expect(tab.preselectArea.textContent).contains(welcomeTutorial, 'the tutorial is incorrect');
});
test('Verify that user can open Explore tab into Insights panel by clicking on Explore Redis button', async t => {
await t.click(browserPage.NavigationPanel.myRedisDBButton);
await t.click(browserPage.exploreRedisBtn);
await t.expect(browserPage.InsightsPanel.sidePanel.exists).ok('Insights panel is not opened');
await t.expect(await browserPage.InsightsPanel.getActiveTabName()).eql(ExploreTabs.Explore);
Expand Down