Skip to content

Commit 3fb6420

Browse files
Merge pull request #3020 from RedisInsight/bugfix/feature/fix-for-Nightly-tests
nightly tests fix
2 parents 0f78603 + cfc4729 commit 3fb6420

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/e2e/pageObjects/components/explore-tab.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export class ExploreTab {
2828
codeBlockLabel = Selector('[data-testid=code-button-block-label]');
2929
cloudFreeLinkTooltip = Selector('[data-testid=tutorials-get-started-link]');
3030
openDatabasePopover = Selector('[data-testid=database-not-opened-popover]');
31+
tutorialPopoverConfirmRunButton = Selector('[data-testid=tutorial-popover-apply-run]');
3132
//Custom tutorials
3233
customTutorials = Selector('[data-testid=accordion-button-custom-tutorials]');
3334
tutorialOpenUploadButton = Selector('[data-testid=open-upload-tutorial-btn]');
@@ -61,6 +62,9 @@ export class ExploreTab {
6162
const runButton = Selector(this.runMask.replace(/\$name/g, block));
6263
await t.scrollIntoView(runButton);
6364
await t.click(runButton);
65+
if(await this.tutorialPopoverConfirmRunButton.exists){
66+
await t.click(this.tutorialPopoverConfirmRunButton);
67+
}
6468
}
6569

6670
/**

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ test
6868
const connectUrlParams = {
6969
redisUrl: `redis://${databaseUsername}:${databasePassword}@${host}:${port}`,
7070
databaseAlias: databaseName,
71-
redirect: 'workbench?guidePath=/sq/introduction.md',
71+
redirect: 'workbench?tutorialId=ds-json-intro',
7272
cloudBdbId: '1232',
7373
subscriptionType: 'fixed',
7474
planMemoryLimit: '30',
@@ -81,7 +81,7 @@ test
8181
await t.expect(workbenchPage.submitCommandButton.exists).ok('Redirection to Workbench is not correct');
8282
const tab = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Explore);
8383
await t.expect(tab.preselectArea.textContent).contains('INTRODUCTION', 'the tutorial page is incorrect');
84-
await t.expect(tab.preselectArea.textContent).contains('How To Query Your Data', 'the tutorial is incorrect');
84+
await t.expect(tab.preselectArea.textContent).contains('JSON', 'the tutorial is incorrect');
8585

8686
//Verify that the same db is not added
8787
await t.navigateTo(generateLink(connectUrlParams));

0 commit comments

Comments
 (0)