@@ -27,7 +27,7 @@ const databasesForAdding = [
27
27
const tenSecondsTimeout = 10000 ;
28
28
const keyName = `recomKey-${ Common . generateWord ( 10 ) } ` ;
29
29
const logger = telemetry . createLogger ( ) ;
30
- const telemetryEvent = 'INSIGHTS_RECOMMENDATION_VOTED ' ;
30
+ const telemetryEvent = 'INSIGHTS_TIPS_VOTED ' ;
31
31
const expectedProperties = [
32
32
'buildType' ,
33
33
'databaseId' ,
83
83
} ) ( 'Verify Insights panel Recommendations displaying' , async t => {
84
84
await browserPage . InsightsPanel . togglePanel ( true ) ;
85
85
// Verify that "Welcome to recommendations" panel displayed when there are no recommendations
86
- let tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Recommendations ) ;
86
+ let tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Tips ) ;
87
87
await t
88
- . expect ( tab . noRecommendationsScreen . exists ) . ok ( 'No recommendations panel not displayed' )
89
- . expect ( tab . noRecommendationsScreen . textContent ) . contains ( 'Welcome toRecommendations ' , 'Welcome to recommendations text not displayed' ) ;
88
+ . expect ( tab . noRecommendationsScreen . exists ) . ok ( 'No tips panel not displayed' )
89
+ . expect ( tab . noRecommendationsScreen . textContent ) . contains ( 'Welcome toTips! ' , 'Welcome to recommendations text not displayed' ) ;
90
90
91
91
await browserPage . InsightsPanel . togglePanel ( false ) ;
92
92
// Go to 2nd database
95
95
await browserPage . InsightsPanel . togglePanel ( true ) ;
96
96
// Verify that live recommendations displayed for each database separately
97
97
// Verify that user can see the live recommendation "Update Redis database" when Redis database is less than 6.0 highlighted as RedisStack
98
- tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Recommendations ) ;
98
+ tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Tips ) ;
99
99
await t
100
100
. expect ( await tab . getRecommendationByName ( redisVersionRecom ) . visible ) . ok ( 'Redis Version recommendation not displayed' )
101
101
. expect ( await tab . getRecommendationByName ( redisTimeSeriesRecom ) . visible ) . notOk ( 'Optimize Time Series recommendation displayed' ) ;
106
106
// Verify that the list of recommendations updated every 10 seconds
107
107
await t . wait ( tenSecondsTimeout ) ;
108
108
await browserPage . InsightsPanel . togglePanel ( true ) ;
109
- tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Recommendations ) ;
109
+ tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Tips ) ;
110
110
// Verify that user can see the live recommendation "Optimize the use of time series"
111
111
await t . expect ( await tab . getRecommendationByName ( redisTimeSeriesRecom ) . visible ) . ok ( 'Optimize Time Series recommendation not displayed' ) ;
112
112
} ) ;
127
127
const notUsefulVoteOption = 'not useful' ;
128
128
const usefulVoteOption = 'useful' ;
129
129
await browserPage . InsightsPanel . togglePanel ( true ) ;
130
- await t . expect ( await browserPage . InsightsPanel . getActiveTabName ( ) ) . contains ( ExploreTabs . Recommendations ) ;
130
+ await t . expect ( await browserPage . InsightsPanel . getActiveTabName ( ) ) . contains ( ExploreTabs . Tips ) ;
131
131
await recommendationsActions . voteForRecommendation ( redisVersionRecom , notUsefulVoteOption ) ;
132
132
// Verify that user can rate recommendations with one of 2 existing types at the same time
133
133
await recommendationsActions . verifyVoteIsSelected ( redisVersionRecom , notUsefulVoteOption ) ;
143
143
// Verify that user can see previous votes when reload the page
144
144
await browserPage . reloadPage ( ) ;
145
145
await browserPage . InsightsPanel . togglePanel ( true ) ;
146
- const tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Recommendations ) ;
146
+ const tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Tips ) ;
147
147
await tab . toggleRecommendation ( redisVersionRecom , true ) ;
148
148
await recommendationsActions . verifyVoteIsSelected ( redisVersionRecom , notUsefulVoteOption ) ;
149
149
@@ -157,10 +157,10 @@ test('Verify that user can hide recommendations and checkbox value is saved', as
157
157
await browserPage . Cli . sendCommandInCli ( commandToGetRecommendation ) ;
158
158
159
159
await browserPage . InsightsPanel . togglePanel ( true ) ;
160
- let tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Recommendations ) ;
160
+ let tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Tips ) ;
161
161
await t . click ( browserPage . InsightsPanel . closeButton ) ;
162
162
await browserPage . InsightsPanel . togglePanel ( true ) ;
163
- await t . expect ( await browserPage . InsightsPanel . getActiveTabName ( ) ) . eql ( ExploreTabs . Recommendations ) ;
163
+ await t . expect ( await browserPage . InsightsPanel . getActiveTabName ( ) ) . eql ( ExploreTabs . Tips ) ;
164
164
await tab . toggleShowHiddenRecommendations ( false ) ;
165
165
await tab . hideRecommendation ( searchVisualizationRecom ) ;
166
166
await t . expect ( await tab . getRecommendationByName ( searchVisualizationRecom ) . exists )
@@ -169,7 +169,7 @@ test('Verify that user can hide recommendations and checkbox value is saved', as
169
169
// check recommendation state is saved after reload
170
170
await browserPage . reloadPage ( ) ;
171
171
await browserPage . InsightsPanel . togglePanel ( true ) ;
172
- tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Recommendations ) ;
172
+ tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Tips ) ;
173
173
await t . expect ( await tab . getRecommendationByName ( searchVisualizationRecom ) . exists )
174
174
. notOk ( 'recommendation is displayed when show hide recommendation is unchecked' ) ;
175
175
@@ -179,7 +179,7 @@ test('Verify that user can hide recommendations and checkbox value is saved', as
179
179
. ok ( 'recommendation is not displayed when show hide recommendation is checked' ) ;
180
180
await browserPage . reloadPage ( ) ;
181
181
await browserPage . InsightsPanel . togglePanel ( true ) ;
182
- tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Recommendations ) ;
182
+ tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Tips ) ;
183
183
await t . expect ( await tab . getRecommendationByName ( searchVisualizationRecom ) . visible )
184
184
. ok ( 'recommendation is not displayed when show hide recommendation is checked' ) ;
185
185
} ) ;
@@ -188,18 +188,18 @@ test('Verify that user can snooze recommendation', async t => {
188
188
await browserPage . Cli . sendCommandInCli ( commandToGetRecommendation ) ;
189
189
190
190
await browserPage . InsightsPanel . togglePanel ( true ) ;
191
- let tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Recommendations ) ;
191
+ let tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Tips ) ;
192
192
await tab . snoozeRecommendation ( searchVisualizationRecom ) ;
193
193
194
194
await browserPage . reloadPage ( ) ;
195
195
await browserPage . InsightsPanel . togglePanel ( true ) ;
196
- tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Recommendations ) ;
196
+ tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Tips ) ;
197
197
await t . expect ( await tab . getRecommendationByName ( searchVisualizationRecom ) . visible )
198
198
. notOk ( 'recommendation is displayed when after snoozing' ) ;
199
199
await browserPage . InsightsPanel . togglePanel ( false ) ;
200
200
await browserPage . Cli . sendCommandInCli ( commandToGetRecommendation ) ;
201
201
await browserPage . InsightsPanel . togglePanel ( true ) ;
202
- tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Recommendations ) ;
202
+ tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Tips ) ;
203
203
await t . expect ( await tab . getRecommendationByName ( searchVisualizationRecom ) . visible ) . ok ( 'recommendation is not displayed again' ) ;
204
204
} ) ;
205
205
test
217
217
} ) ( 'Verify that recommendations from database analysis are displayed in Insight panel above live recommendations' , async t => {
218
218
219
219
await browserPage . InsightsPanel . togglePanel ( true ) ;
220
- let tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Recommendations ) ;
220
+ let tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Tips ) ;
221
221
const redisVersionRecommendationSelector = tab . getRecommendationByName ( redisVersionRecom ) ;
222
222
// Verify that live recommendation displayed in Insights panel
223
223
await t . expect ( await tab . getRecommendationByName ( redisVersionRecom ) . visible ) . ok ( `${ redisVersionRecom } recommendation not displayed` ) ;
228
228
await t . click ( myRedisDatabasePage . NavigationPanel . analysisPageButton ) ;
229
229
await t . click ( memoryEfficiencyPage . newReportBtn ) ;
230
230
await browserPage . InsightsPanel . togglePanel ( true ) ;
231
- tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Recommendations ) ;
231
+ tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Tips ) ;
232
232
// Verify that recommendations are synchronized
233
233
await t . expect ( await tab . getRecommendationByName ( setPasswordRecom ) . visible ) . ok ( 'Recommendations are not synchronized' ) ;
234
234
// Verify that duplicates are not displayed
@@ -237,15 +237,15 @@ test
237
237
//https://redislabs.atlassian.net/browse/RI-4413
238
238
test ( 'Verify that if user clicks on the Analyze button and link, the pop up with analyze button is displayed and new report is generated' , async t => {
239
239
await browserPage . InsightsPanel . togglePanel ( true ) ;
240
- let tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Recommendations ) ;
240
+ let tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Tips ) ;
241
241
await t . click ( tab . analyzeDatabaseButton ) ;
242
242
await t . click ( tab . analyzeTooltipButton ) ;
243
243
//Verify that user is navigated to DB Analysis page via Analyze button and new report is generated
244
244
await t . click ( memoryEfficiencyPage . selectedReport ) ;
245
245
await t . expect ( memoryEfficiencyPage . reportItem . visible ) . ok ( 'Database analysis page not opened' ) ;
246
246
await t . click ( memoryEfficiencyPage . NavigationPanel . workbenchButton ) ;
247
247
await workbenchPage . InsightsPanel . togglePanel ( true ) ;
248
- tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Recommendations ) ;
248
+ tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Tips ) ;
249
249
await t . click ( tab . analyzeDatabaseLink ) ;
250
250
await t . click ( tab . analyzeTooltipButton ) ;
251
251
//Verify that user is navigated to DB Analysis page via Analyze link and new report is generated
263
263
await browserPage . Cli . sendCommandInCli ( cliCommand ) ;
264
264
await t . click ( browserPage . refreshKeysButton ) ;
265
265
await browserPage . InsightsPanel . togglePanel ( true ) ;
266
- const tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Recommendations ) ;
266
+ const tab = await browserPage . InsightsPanel . setActiveTab ( ExploreTabs . Tips ) ;
267
267
let keyNameFromRecommendation = await tab . getRecommendationByName ( RecommendationIds . searchJson )
268
268
. find ( tab . cssKeyName )
269
269
. innerText ;
0 commit comments