@@ -3,9 +3,9 @@ import { Selector } from 'testcafe';
3
3
import { MyRedisDatabasePage , MemoryEfficiencyPage , BrowserPage , CliPage } from '../../../pageObjects' ;
4
4
import { rte } from '../../../helpers/constants' ;
5
5
import { acceptLicenseTermsAndAddDatabaseApi } from '../../../helpers/database' ;
6
- import { commonUrl , ossStandaloneConfig } from '../../../helpers/conf' ;
6
+ import { commonUrl , ossStandaloneRedisearch } from '../../../helpers/conf' ;
7
7
import { deleteStandaloneDatabaseApi } from '../../../helpers/api/api-database' ;
8
- import { populateDBWithHashes } from '../../../helpers/keys' ;
8
+ import { deleteAllKeysFromDB , populateDBWithHashes } from '../../../helpers/keys' ;
9
9
10
10
const memoryEfficiencyPage = new MemoryEfficiencyPage ( ) ;
11
11
const myRedisDatabasePage = new MyRedisDatabasePage ( ) ;
@@ -27,15 +27,16 @@ fixture `Memory Efficiency Top Keys Table`
27
27
. page ( commonUrl ) ;
28
28
test
29
29
. before ( async t => {
30
- await acceptLicenseTermsAndAddDatabaseApi ( ossStandaloneConfig , ossStandaloneConfig . databaseName ) ;
30
+ await acceptLicenseTermsAndAddDatabaseApi ( ossStandaloneRedisearch , ossStandaloneRedisearch . databaseName ) ;
31
31
// Create keys
32
- await populateDBWithHashes ( ossStandaloneConfig . host , ossStandaloneConfig . port , keyToAddParameters ) ;
32
+ await populateDBWithHashes ( ossStandaloneRedisearch . host , ossStandaloneRedisearch . port , keyToAddParameters ) ;
33
33
// Go to Analysis Tools page
34
34
await t . click ( myRedisDatabasePage . analysisPageButton ) ;
35
35
} )
36
36
. after ( async ( ) => {
37
37
await cliPage . sendCommandInCli ( 'flushdb' ) ;
38
- await deleteStandaloneDatabaseApi ( ossStandaloneConfig ) ;
38
+ await deleteAllKeysFromDB ( ossStandaloneRedisearch . host , ossStandaloneRedisearch . port ) ;
39
+ await deleteStandaloneDatabaseApi ( ossStandaloneRedisearch ) ;
39
40
} ) ( 'Top Keys displaying in Summary of big keys' , async t => {
40
41
// Verify that user can see “-” as length for all unsupported data types
41
42
await cliPage . sendCommandInCli ( mbloomCommand ) ;
0 commit comments