@@ -133,3 +133,38 @@ test
133
133
//Verify the quick navigation section
134
134
await t . expect ( workbenchPage . enablementAreaPagination . visible ) . ok ( 'The quick navigation section is displayed' ) ;
135
135
} ) ;
136
+ test
137
+ . meta ( { rte : rte . standalone } )
138
+ ( 'Verify that user can see the pagination for redis stack pages in Tutorials' , async t => {
139
+ //Open any redis stack Tutorials
140
+ await t . click ( workbenchPage . redisStackTutorialsButton ) ;
141
+ await t . click ( workbenchPage . vectorSimilitaritySearchButton ) ;
142
+ //Verify the pagination
143
+ await t . expect ( workbenchPage . enablementAreaPagination . visible ) . ok ( 'The user can see the pagination for redis stack pages' ) ;
144
+ await t . expect ( workbenchPage . nextPageButton . visible ) . ok ( 'The user can see the next page for redis stack pages' ) ;
145
+ await t . expect ( workbenchPage . prevPageButton . visible ) . ok ( 'The user can see the prev page for redis stack pages' ) ;
146
+ } ) ;
147
+ test
148
+ . meta ( { rte : rte . standalone } )
149
+ ( 'Verify that the same type of content is supported in the “Tutorials” as in the “Quick Guides”' , async t => {
150
+ const tutorialsContent = [
151
+ 'Working with JSON' ,
152
+ 'Vector Similarity Search' ,
153
+ 'Redis for time series' ,
154
+ 'Working with graphs' ,
155
+ 'Probabilistic data structures'
156
+ ] ;
157
+ const command = 'HSET bikes:10000 ' ;
158
+ //Verify the redis stack links
159
+ await t . click ( workbenchPage . redisStackTutorialsButton ) ;
160
+ const linksCount = await workbenchPage . redisStackLinks . count ;
161
+ for ( let i = 0 ; i < linksCount ; i ++ ) {
162
+ await t . expect ( workbenchPage . redisStackLinks . nth ( i ) . textContent ) . eql ( tutorialsContent [ i ] , `The link ${ tutorialsContent [ i ] } is in the Enablement area` ) ;
163
+ }
164
+ //Verify the load script to Editor
165
+ await t . click ( workbenchPage . vectorSimilitaritySearchButton ) ;
166
+ await t . expect ( workbenchPage . queryInputScriptArea . textContent ) . eql ( '' , 'The editor is empty' ) ;
167
+ await t . click ( workbenchPage . hashWithVectorButton ) ;
168
+ const editorContent = ( await workbenchPage . queryInputScriptArea . textContent ) . replace ( / \s / g, ' ' )
169
+ await t . expect ( editorContent ) . eql ( command , 'The selected command is in the Editor' ) ;
170
+ } ) ;
0 commit comments