File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
tests/web/critical-path/url-handling Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ export class ExploreTab {
28
28
codeBlockLabel = Selector ( '[data-testid=code-button-block-label]' ) ;
29
29
cloudFreeLinkTooltip = Selector ( '[data-testid=tutorials-get-started-link]' ) ;
30
30
openDatabasePopover = Selector ( '[data-testid=database-not-opened-popover]' ) ;
31
+ tutorialPopoverConfirmRunButton = Selector ( '[data-testid=tutorial-popover-apply-run]' ) ;
31
32
//Custom tutorials
32
33
customTutorials = Selector ( '[data-testid=accordion-button-custom-tutorials]' ) ;
33
34
tutorialOpenUploadButton = Selector ( '[data-testid=open-upload-tutorial-btn]' ) ;
@@ -61,6 +62,9 @@ export class ExploreTab {
61
62
const runButton = Selector ( this . runMask . replace ( / \$ n a m e / g, block ) ) ;
62
63
await t . scrollIntoView ( runButton ) ;
63
64
await t . click ( runButton ) ;
65
+ if ( await this . tutorialPopoverConfirmRunButton . exists ) {
66
+ await t . click ( this . tutorialPopoverConfirmRunButton ) ;
67
+ }
64
68
}
65
69
66
70
/**
Original file line number Diff line number Diff line change 68
68
const connectUrlParams = {
69
69
redisUrl : `redis://${ databaseUsername } :${ databasePassword } @${ host } :${ port } ` ,
70
70
databaseAlias : databaseName ,
71
- redirect : 'workbench?guidePath=/sq/introduction.md ' ,
71
+ redirect : 'workbench?tutorialId=ds-json-intro ' ,
72
72
cloudBdbId : '1232' ,
73
73
subscriptionType : 'fixed' ,
74
74
planMemoryLimit : '30' ,
81
81
await t . expect ( workbenchPage . submitCommandButton . exists ) . ok ( 'Redirection to Workbench is not correct' ) ;
82
82
const tab = await workbenchPage . InsightsPanel . setActiveTab ( ExploreTabs . Explore ) ;
83
83
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' ) ;
85
85
86
86
//Verify that the same db is not added
87
87
await t . navigateTo ( generateLink ( connectUrlParams ) ) ;
You can’t perform that action at this time.
0 commit comments