@@ -3,16 +3,18 @@ import { Selector } from 'testcafe';
3
3
import { MyRedisDatabasePage , MemoryEfficiencyPage , BrowserPage } from '../../../pageObjects' ;
4
4
import { rte } from '../../../helpers/constants' ;
5
5
import { DatabaseHelper } from '../../../helpers/database' ;
6
- import { commonUrl , ossStandaloneRedisearch } from '../../../helpers/conf' ;
6
+ import { commonUrl , ossStandaloneConfig , ossStandaloneRedisearch } from '../../../helpers/conf' ;
7
7
import { DatabaseAPIRequests } from '../../../helpers/api/api-database' ;
8
8
import { deleteAllKeysFromDB , populateDBWithHashes , populateHashWithFields } from '../../../helpers/keys' ;
9
9
import { Common } from '../../../helpers/common' ;
10
+ import { APIKeyRequests } from '../../../helpers/api/api-keys' ;
10
11
11
12
const memoryEfficiencyPage = new MemoryEfficiencyPage ( ) ;
12
13
const myRedisDatabasePage = new MyRedisDatabasePage ( ) ;
13
14
const browserPage = new BrowserPage ( ) ;
14
15
const databaseHelper = new DatabaseHelper ( ) ;
15
16
const databaseAPIRequests = new DatabaseAPIRequests ( ) ;
17
+ const apiKeyRequests = new APIKeyRequests ( ) ;
16
18
const chance = new Chance ( ) ;
17
19
18
20
const keyToAddParameters = { keysCount : 13 , keyNameStartWith : 'hashKey' } ;
79
81
await t . click ( myRedisDatabasePage . NavigationPanel . analysisPageButton ) ;
80
82
} )
81
83
. after ( async t => {
82
- await t . click ( myRedisDatabasePage . NavigationPanel . browserButton ) ;
83
- await browserPage . deleteKeyByName ( keyName ) ;
84
+ await apiKeyRequests . deleteKeyByNameApi ( keyName , ossStandaloneRedisearch . databaseName ) ;
84
85
await databaseAPIRequests . deleteStandaloneDatabaseApi ( ossStandaloneRedisearch ) ;
85
86
} ) ( 'Big highlighted key tooltip' , async t => {
86
87
const tooltipText = 'Consider splitting it into multiple keys' ;
0 commit comments