211
211
const noExpiryPointLocation = + ( ( await memoryEfficiencyPage . noExpiryPoint . getAttribute ( 'cy' ) ) . slice ( 0 , 2 ) ) ;
212
212
await t . expect ( noExpiryPointLocation ) . lt ( 198 , 'Point in No expiry breakdown doesn\'t contain key' ) ;
213
213
} ) ;
214
- test . only
214
+ test
215
215
. before ( async t => {
216
216
await acceptLicenseTermsAndAddDatabaseApi ( ossStandaloneConfig , ossStandaloneConfig . databaseName ) ;
217
217
await t . click ( myRedisDatabasePage . analysisPageButton ) ;
@@ -224,9 +224,7 @@ test.only
224
224
} ) ( 'Analysis history' , async t => {
225
225
const numberOfKeys = [ ] ;
226
226
const dbSize = ( await cliPage . getSuccessCommandResultFromCli ( 'dbsize' ) ) . split ( ' ' ) ;
227
- console . log ( `dbSize: ${ dbSize } ` ) ;
228
227
const existedNumberOfKeys = parseInt ( dbSize [ dbSize . length - 1 ] ) ;
229
- console . log ( `existedNumberOfKeys: ${ existedNumberOfKeys } ` ) ;
230
228
for ( let i = 0 ; i < 6 ; i ++ ) {
231
229
await cliPage . sendCommandInCli ( `set ${ keyNamesReport [ i ] } ${ chance . word ( ) } ` ) ;
232
230
await t . click ( memoryEfficiencyPage . newReportBtn ) ;
@@ -238,24 +236,17 @@ test.only
238
236
// Verify that user can see up to the 5 most recent previous results per database in the history
239
237
await t . expect ( memoryEfficiencyPage . reportItem . count ) . eql ( 5 , 'Number of saved reports is not correct' ) ;
240
238
// Verify that user can switch between reports and see all data updated in each report
241
- console . log ( `numberOfKeys in generated report: ${ numberOfKeys } ` ) ;
242
239
for ( let i = 0 ; i < 5 ; i ++ ) {
243
- console . log ( `i: ${ i } ` ) ;
244
240
await t . click ( memoryEfficiencyPage . reportItem . nth ( i ) ) ;
245
241
await t . expect ( memoryEfficiencyPage . reportItem . visible ) . notOk ( 'Report is not switched' ) ;
246
- console . log ( `scannedKeysInReport: ${ await memoryEfficiencyPage . scannedKeysInReport . textContent } ` ) ;
247
242
await t . expect ( memoryEfficiencyPage . scannedKeysInReport . textContent ) . contains ( `(${ numberOfKeys [ 5 - i ] } /${ numberOfKeys [ 5 - i ] } keys)` ) ;
248
243
const actualNumber = await memoryEfficiencyPage . donutTotalKeys . sibling ( 1 ) . textContent ;
249
- console . log ( `actualNumber: ${ actualNumber } ` ) ;
250
- console . log ( `expectedNumber: ${ numberOfKeys [ 5 - i ] } ` ) ;
251
244
await t . expect ( actualNumber ) . eql ( numberOfKeys [ 5 - i ] , 'Report content (total keys) is not correct' , { timeout : 2000 } ) ;
252
245
await t . click ( memoryEfficiencyPage . selectedReport ) ;
253
246
}
254
247
// Verify that specific report is saved as context
255
248
await t . click ( memoryEfficiencyPage . reportItem . nth ( 3 ) ) ;
256
249
await t . click ( myRedisDatabasePage . workbenchButton ) ;
257
250
await t . click ( myRedisDatabasePage . analysisPageButton ) ;
258
- console . log ( `actual: ${ await memoryEfficiencyPage . donutTotalKeys . sibling ( 1 ) . textContent } ` ) ;
259
- console . log ( `expected: ${ numberOfKeys [ 2 ] } ` ) ;
260
251
await t . expect ( memoryEfficiencyPage . donutTotalKeys . sibling ( 1 ) . textContent ) . eql ( numberOfKeys [ 2 ] , 'Context is not saved' ) ;
261
252
} ) ;
0 commit comments