94
94
let featureVersion = await JSON . parse ( await getColumnValueFromTableInDB ( featuresConfigTable , 'data' ) ) . version ;
95
95
let versionFromConfig = await Common . getJsonPropertyValue ( 'version' , pathes . validConfig ) ;
96
96
97
- // Verify that config file updated from the GitHub repository if the GitHub file has the latest timestamp
98
97
await t . expect ( featureVersion ) . eql ( versionFromConfig , 'Config with invalid data applied' ) ;
99
98
// Verify that Insights panel displayed if user's controlNumber is in range from config file
100
99
await t . expect ( browserPage . InsightsPanel . insightsBtn . exists ) . ok ( 'Insights panel not displayed when enabled from remote config' ) ;
104
103
await myRedisDatabasePage . clickOnDBByName ( ossStandaloneV5Config . databaseName ) ;
105
104
await t . expect ( browserPage . InsightsPanel . insightsBtn . exists ) . ok ( 'Insights panel not displayed for the other db connection' ) ;
106
105
await browserPage . InsightsPanel . toggleInsightsPanel ( true ) ;
107
- // Verify that Insights panel displayed if user's controlNumber is in range from config file
108
106
await t . expect ( browserPage . InsightsPanel . getRecommendationByName ( redisVersionRecom ) . exists ) . ok ( 'Redis Version recommendation not displayed' ) ;
109
107
110
108
await browserPage . InsightsPanel . toggleInsightsPanel ( false ) ;
@@ -117,11 +115,11 @@ test
117
115
// Update remote config .json to config without analytics filter
118
116
await modifyFeaturesConfigJson ( pathes . analyticsConfig ) ;
119
117
await updateControlNumber ( 48.2 ) ;
118
+ // Verify that Insights panel can be displayed for WebStack app according to filters
120
119
await t . expect ( browserPage . InsightsPanel . insightsBtn . exists ) . ok ( 'Insights panel not displayed without analytics when its filter is off' ) ;
121
120
122
- // Verify that Insights panel not displayed if the local config file has it disabled
121
+ // Verify that Insights panel displayed if user's controlNumber is out of range from config file
123
122
await updateControlNumber ( 30.1 ) ;
124
- // Verify that Insights panel can be displayed for Electron/WebStack app according to filters
125
123
await t . expect ( browserPage . InsightsPanel . insightsBtn . exists ) . notOk ( 'Insights panel displayed for user with control number out of the config' ) ;
126
124
127
125
// Update remote config .json to config with buildType filter excluding current app build
162
160
// Update remote config .json to config with buildType filter including current app build
163
161
await modifyFeaturesConfigJson ( pathes . electronConfig ) ;
164
162
await updateControlNumber ( 48.2 ) ;
165
- // Verify that Insights panel can be displayed for Electron/WebStack app according to filters
166
163
await t . expect ( browserPage . InsightsPanel . insightsBtn . exists ) . ok ( 'Insights panel not displayed when filter includes this buildType' ) ;
167
164
} ) ;
0 commit comments