@@ -5,19 +5,17 @@ import {
5
5
ossStandaloneBigConfig ,
6
6
ossStandaloneConfig ,
7
7
ossStandaloneConfigEmpty ,
8
- ossStandaloneRedisearch , ossStandaloneRedisGears
8
+ ossStandaloneRedisGears
9
9
} from '../../../../helpers/conf' ;
10
10
import { ExploreTabs , KeyTypesTexts , rte } from '../../../../helpers/constants' ;
11
11
import { DatabaseAPIRequests } from '../../../../helpers/api/api-database' ;
12
- import { APIKeyRequests } from '../../../../helpers/api/api-keys' ;
13
12
import { Common } from '../../../../helpers/common' ;
14
13
import { verifyKeysDisplayingInTheList } from '../../../../helpers/keys' ;
15
14
16
15
const browserPage = new BrowserPage ( ) ;
17
16
const workbenchPage = new WorkbenchPage ( ) ;
18
17
const databaseHelper = new DatabaseHelper ( ) ;
19
18
const databaseAPIRequests = new DatabaseAPIRequests ( ) ;
20
- const apiKeyRequests = new APIKeyRequests ( ) ;
21
19
22
20
let keyNames : string [ ] = [ ] ;
23
21
@@ -28,15 +26,15 @@ fixture `Tree view verifications`
28
26
await databaseHelper . acceptLicenseTermsAndAddDatabaseApi ( ossStandaloneBigConfig ) ;
29
27
} )
30
28
. afterEach ( async ( ) => {
31
- // Delete database
29
+ await browserPage . Cli . sendCommandInCli ( 'flushdb' ) ;
32
30
await databaseAPIRequests . deleteStandaloneDatabaseApi ( ossStandaloneBigConfig ) ;
33
31
} ) ;
34
32
test
35
33
. before ( async ( ) => {
36
34
await databaseHelper . acceptLicenseTermsAndAddDatabaseApi ( ossStandaloneConfigEmpty ) ;
37
35
} )
38
36
. after ( async ( ) => {
39
- // Delete database
37
+ await browserPage . Cli . sendCommandInCli ( 'flushdb' ) ;
40
38
await databaseAPIRequests . deleteStandaloneDatabaseApi ( ossStandaloneConfigEmpty ) ;
41
39
} ) ( 'Verify that user has load sample data button when there are no keys in the database' , async t => {
42
40
const message = 'Let\'sstartworkingLoadsampledata+Addkeymanually' ;
@@ -147,10 +145,7 @@ test
147
145
await databaseHelper . acceptLicenseTermsAndAddDatabaseApi ( ossStandaloneConfigEmpty ) ;
148
146
} )
149
147
. after ( async ( ) => {
150
- // Clear and delete database
151
- for ( const name of keyNames ) {
152
- await apiKeyRequests . deleteKeyByNameApi ( name , ossStandaloneConfigEmpty . databaseName ) ;
153
- }
148
+ await browserPage . Cli . sendCommandInCli ( 'flushdb' ) ;
154
149
await databaseAPIRequests . deleteStandaloneDatabaseApi ( ossStandaloneConfigEmpty ) ;
155
150
} ) ( 'Verify that if there are keys without namespaces, they are displayed in the root directory after all folders by default in the Tree view' , async t => {
156
151
keyNames = [
238
233
await browserPage . searchByKeyName ( `${ name } *` ) ;
239
234
await verifyKeysDisplayingInTheList ( [ keyName1 , keyName2 ] , false ) ;
240
235
} ) ;
241
-
0 commit comments