@@ -44,35 +44,35 @@ test('Verify that user can see the [Manual] option in the Enablement area', asyn
44
44
test ( 'Verify that user can see saved article in Enablement area when he leaves Workbench page and goes back again' , async t => {
45
45
await workbenchPage . InsightsPanel . togglePanel ( true ) ;
46
46
const tutorials = await workbenchPage . InsightsPanel . setActiveTab ( ExploreTabs . Explore ) ;
47
- await t . click ( tutorials . documentButtonInQuickGuides ) ;
48
- await t . expect ( tutorials . internalLinkWorkingWithHashes . visible ) . ok ( 'The working with hachs link is not visible' , { timeout : 5000 } ) ;
47
+ await t . click ( tutorials . dataStructureAccordionTutorialButton ) ;
48
+ await t . expect ( tutorials . internalLinkWorkingWithHashes . visible ) . ok ( 'The working with hashes link is not visible' , { timeout : 5000 } ) ;
49
49
// Open Working with Hashes section
50
50
await t . click ( tutorials . internalLinkWorkingWithHashes ) ;
51
51
// Check the button from Hash page is visible
52
- await tutorials . runBlockCode ( 'Create' ) ;
53
- let selector = await tutorials . getRunSelector ( 'Create' ) ;
52
+ await tutorials . runBlockCode ( 'Create a hash ' ) ;
53
+ let selector = await tutorials . getRunSelector ( 'Create a hash ' ) ;
54
54
await t . expect ( selector . visible ) . ok ( 'The end of the page is not visible' ) ;
55
55
// Go to Browser page
56
56
await t . click ( myRedisDatabasePage . NavigationPanel . browserButton ) ;
57
57
// Go back to Workbench page
58
58
await t . click ( myRedisDatabasePage . NavigationPanel . workbenchButton ) ;
59
59
// Verify that the same article is opened in Enablement area
60
- selector = await tutorials . getRunSelector ( 'Create' ) ;
60
+ selector = await tutorials . getRunSelector ( 'Create a hash ' ) ;
61
61
await t . expect ( selector . visible ) . ok ( 'The end of the page is not visible' ) ;
62
62
// Go to list of DBs page
63
63
await t . click ( myRedisDatabasePage . NavigationPanel . myRedisDBButton ) ;
64
64
// Go back to active DB again
65
65
await myRedisDatabasePage . clickOnDBByName ( ossStandaloneConfig . databaseName ) ;
66
66
// Check that user is on Workbench page and "Working with Hashes" page is displayed
67
- selector = await tutorials . getRunSelector ( 'Create' ) ;
67
+ selector = await tutorials . getRunSelector ( 'Create a hash ' ) ;
68
68
await t . expect ( selector . visible ) . ok ( 'The end of the page is not visible' ) ;
69
69
} ) ;
70
70
//skipped due the issue RI-2384
71
71
test . skip ( 'Verify that user can see saved scroll position in Enablement area when he leaves Workbench page and goes back again' , async t => {
72
72
// Open Working with Hashes section
73
73
await workbenchPage . InsightsPanel . togglePanel ( true ) ;
74
74
const tutorials = await workbenchPage . InsightsPanel . setActiveTab ( ExploreTabs . Explore ) ;
75
- await t . click ( tutorials . documentButtonInQuickGuides ) ;
75
+ await t . click ( tutorials . dataStructureAccordionTutorialButton ) ;
76
76
await t . click ( tutorials . internalLinkWorkingWithHashes ) ;
77
77
// Evaluate the last button in Enablement Area
78
78
const buttonsQuantity = await workbenchPage . preselectButtons . count ;
@@ -96,16 +96,17 @@ test.skip('Verify that user can see saved scroll position in Enablement area whe
96
96
} ) ;
97
97
test ( 'Verify that user can see the siblings menu by clicking on page counter element between Back and Next buttons' , async t => {
98
98
const popoverButtons = [
99
- 'Introduction' ,
100
- 'Working with Hashes' ,
101
- 'Working with JSON' ,
102
- 'Learn More'
99
+ 'Strings' ,
100
+ 'Hashes' ,
101
+ 'Lists' ,
102
+ 'Sets' ,
103
+ 'Sorted sets'
103
104
] ;
104
105
105
106
// Open Working with Hashes section and click on the on page counter
106
107
await workbenchPage . InsightsPanel . togglePanel ( true ) ;
107
108
const tutorials = await workbenchPage . InsightsPanel . setActiveTab ( ExploreTabs . Explore ) ;
108
- await t . click ( tutorials . documentButtonInQuickGuides ) ;
109
+ await t . click ( tutorials . dataStructureAccordionTutorialButton ) ;
109
110
await t . expect ( tutorials . internalLinkWorkingWithHashes . visible ) . ok ( 'The working with hachs link is not visible' , { timeout : 5000 } ) ;
110
111
await t . click ( tutorials . internalLinkWorkingWithHashes ) ;
111
112
// Verify that user can see the quick navigation section to navigate between siblings under the scrolling content
@@ -120,29 +121,3 @@ test('Verify that user can see the siblings menu by clicking on page counter ele
120
121
await t . expect ( popoverButton . textContent ) . eql ( popoverButtons [ i ] , `The siblings menu button ${ popoverButtons [ i ] } is not displayed` ) ;
121
122
}
122
123
} ) ;
123
- test ( 'Verify that the same type of content is supported in the “Tutorials” as in the “Quick Guides”' , async t => {
124
- const tutorialsContent = [
125
- 'Working with JSON' ,
126
- 'Vector Similarity Search' ,
127
- 'Redis for time series' ,
128
- 'Probabilistic data structures'
129
- ] ;
130
- const command = 'HSET bikes:10000 ' ;
131
-
132
- // Verify the redis stack links
133
- await workbenchPage . InsightsPanel . togglePanel ( true ) ;
134
- const tutorials = await workbenchPage . InsightsPanel . setActiveTab ( ExploreTabs . Explore ) ;
135
- await t . click ( tutorials . redisStackTutorialsButton ) ;
136
- const linksCount = await tutorials . redisStackLinks . count ;
137
- for ( let i = 0 ; i < linksCount ; i ++ ) {
138
- await t . expect ( tutorials . redisStackLinks . nth ( i ) . textContent ) . eql ( tutorialsContent [ i ] , `The link ${ tutorialsContent [ i ] } is in the Enablement area` ) ;
139
- }
140
- // Verify the load script to Editor
141
- await t . click ( tutorials . vectorSimilitaritySearchButton ) ;
142
- // Verify that user can see the pagination for redis stack pages in Tutorials
143
- await t . expect ( tutorials . enablementAreaPagination . visible ) . ok ( 'The user can not see the pagination for redis stack pages' ) ;
144
- await t . expect ( tutorials . nextPageButton . visible ) . ok ( 'The user can not see the next page for redis stack pages' ) ;
145
- await t . expect ( tutorials . prevPageButton . visible ) . ok ( 'The user can not see the prev page for redis stack pages' ) ;
146
-
147
- await t . expect ( workbenchPage . queryInputScriptArea . textContent ) . eql ( '' , 'The editor is not empty' ) ;
148
- } ) ;
0 commit comments