@@ -9,15 +9,13 @@ import {
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,7 +26,7 @@ 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
37
35
await browserPage . Cli . sendCommandInCli ( 'flushdb' ) ;
38
36
} )
39
37
. after ( async ( ) => {
40
- // Delete database
38
+ await browserPage . Cli . sendCommandInCli ( 'flushdb' ) ;
41
39
await databaseAPIRequests . deleteStandaloneDatabaseApi ( ossStandaloneConfigEmpty ) ;
42
40
await browserPage . Cli . sendCommandInCli ( 'flushdb' ) ;
43
41
} ) ( 'Verify that user has load sample data button when there are no keys in the database' , async t => {
@@ -150,10 +148,7 @@ test
150
148
await databaseHelper . acceptLicenseTermsAndAddDatabaseApi ( ossStandaloneConfigEmpty ) ;
151
149
} )
152
150
. after ( async ( ) => {
153
- // Clear and delete database
154
- for ( const name of keyNames ) {
155
- await apiKeyRequests . deleteKeyByNameApi ( name , ossStandaloneConfigEmpty . databaseName ) ;
156
- }
151
+ await browserPage . Cli . sendCommandInCli ( 'flushdb' ) ;
157
152
await databaseAPIRequests . deleteStandaloneDatabaseApi ( ossStandaloneConfigEmpty ) ;
158
153
} ) ( '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 => {
159
154
keyNames = [
241
236
await browserPage . searchByKeyName ( `${ name } *` ) ;
242
237
await verifyKeysDisplayingInTheList ( [ keyName1 , keyName2 ] , false ) ;
243
238
} ) ;
244
-
0 commit comments