@@ -40,24 +40,6 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
4040 await cleanUp ( ) ;
4141 } ) ;
4242
43- describe ( 'Getting Started redirect flow' , function ( ) {
44- beforeEach ( async ( ) => {
45- await pageObjects . common . navigateToApp ( 'searchHomepage' , {
46- shouldLoginIfPrompted : false ,
47- } ) ;
48- } ) ;
49- it ( 'redirects to Getting Started on first load' , async ( ) => {
50- await pageObjects . searchGettingStarted . expectToBeOnGettingStartedPage ( ) ;
51- } ) ;
52- it ( 'redirects to Home page if localStorage key is set' , async ( ) => {
53- await browser . refresh ( ) ;
54- await pageObjects . common . navigateToApp ( 'searchHomepage' , {
55- shouldLoginIfPrompted : false ,
56- } ) ;
57- await pageObjects . searchHomePage . expectToBeOnHomepage ( ) ;
58- } ) ;
59- } ) ;
60-
6143 describe ( 'Getting Started page' , function ( ) {
6244 beforeEach ( async ( ) => {
6345 await pageObjects . searchNavigation . navigateToElasticsearchSearchGettingStartedPage ( ) ;
@@ -143,35 +125,31 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
143125 } ) ;
144126
145127 describe ( 'Explore the API' , function ( ) {
146- it ( 'opens the console when you click the search basics tutorial card ' , async ( ) => {
128+ it ( 'renders all the tutorial cards ' , async ( ) => {
147129 await testSubjects . existOrFail ( 'console_tutorials_search_basics' ) ;
148- await testSubjects . click ( 'console_tutorials_search_basics ') ;
149- await pageObjects . embeddedConsole . expectEmbeddedConsoleToBeOpen ( ) ;
130+ await testSubjects . existOrFail ( 'console_tutorials_semantic_search ') ;
131+ await testSubjects . existOrFail ( 'console_tutorials_esql' ) ;
150132 } ) ;
151- it ( 'opens the console when you click the search basics tutorial button ' , async ( ) => {
133+ it ( 'renders all the tutorial card buttons ' , async ( ) => {
152134 await testSubjects . existOrFail ( 'console_tutorials_search_basics-btn' ) ;
153- await testSubjects . click ( 'console_tutorials_search_basics ') ;
154- await pageObjects . embeddedConsole . expectEmbeddedConsoleToBeOpen ( ) ;
135+ await testSubjects . existOrFail ( 'console_tutorials_semantic_search-btn ') ;
136+ await testSubjects . existOrFail ( 'console_tutorials_esql-btn' ) ;
155137 } ) ;
156- it ( 'opens the console when you click the semantic search tutorial card' , async ( ) => {
157- await testSubjects . existOrFail ( 'console_tutorials_semantic_search ' ) ;
158- await testSubjects . click ( 'console_tutorials_semantic_search ' ) ;
138+ it ( 'opens the console when you click the search basics tutorial card' , async ( ) => {
139+ await testSubjects . existOrFail ( 'console_tutorials_search_basics ' ) ;
140+ await testSubjects . click ( 'console_tutorials_search_basics ' ) ;
159141 await pageObjects . embeddedConsole . expectEmbeddedConsoleToBeOpen ( ) ;
142+ await pageObjects . embeddedConsole . clickEmbeddedConsoleControlBar ( ) ;
143+ await pageObjects . embeddedConsole . expectEmbeddedConsoleToBeClosed ( ) ;
160144 } ) ;
161145 it ( 'opens the console when you click the semantic search tutorial button' , async ( ) => {
162146 await testSubjects . existOrFail ( 'console_tutorials_semantic_search-btn' ) ;
163- await testSubjects . click ( 'console_tutorials_semantic_search-btn' ) ;
164- await pageObjects . embeddedConsole . expectEmbeddedConsoleToBeOpen ( ) ;
165- } ) ;
166- it ( 'opens the console when you click the esql tutorial card' , async ( ) => {
167- await testSubjects . existOrFail ( 'console_tutorials_esql' ) ;
168- await testSubjects . click ( 'console_tutorials_esql' ) ;
169- await pageObjects . embeddedConsole . expectEmbeddedConsoleToBeOpen ( ) ;
170- } ) ;
171- it ( 'opens the console when you click the esql tutorial button' , async ( ) => {
172- await testSubjects . existOrFail ( 'console_tutorials_esql-btn' ) ;
173- await testSubjects . click ( 'console_tutorials_esql-btn' ) ;
147+ const tutorialButton = await testSubjects . find ( 'console_tutorials_semantic_search-btn' ) ;
148+ await tutorialButton . scrollIntoView ( ) ;
149+ await tutorialButton . click ( ) ;
174150 await pageObjects . embeddedConsole . expectEmbeddedConsoleToBeOpen ( ) ;
151+ await pageObjects . embeddedConsole . clickEmbeddedConsoleControlBar ( ) ;
152+ await pageObjects . embeddedConsole . expectEmbeddedConsoleToBeClosed ( ) ;
175153 } ) ;
176154 } ) ;
177155
0 commit comments