@@ -14,7 +14,7 @@ import {
14
14
ossStandaloneNoPermissionsConfig
15
15
} from '../../../helpers/conf' ;
16
16
import { rte } from '../../../helpers/constants' ;
17
- import { addNewStandaloneDatabaseApi , deleteStandaloneDatabaseApi } from '../../../helpers/api/api-database' ;
17
+ import { addNewStandaloneDatabaseApi , deleteStandaloneDatabaseApi , deleteStandaloneDatabasesApi } from '../../../helpers/api/api-database' ;
18
18
import { Common } from '../../../helpers/common' ;
19
19
20
20
const myRedisDatabasePage = new MyRedisDatabasePage ( ) ;
@@ -123,17 +123,18 @@ test
123
123
await t . click ( cliPage . cliExpandButton ) ;
124
124
await t . expect ( cliPage . cliOutputResponseSuccess . textContent ) . eql ( '"OK"' , 'Command from autocomplete was not found & executed' ) ;
125
125
await t . click ( cliPage . cliCollapseButton ) ;
126
- await deleteStandaloneDatabaseApi ( ossStandaloneConfig ) ;
127
126
await t . click ( myRedisDatabasePage . myRedisDBButton ) ;
128
127
await addNewStandaloneDatabaseApi ( ossStandaloneNoPermissionsConfig ) ;
129
128
await common . reloadPage ( ) ;
130
129
await myRedisDatabasePage . clickOnDBByName ( ossStandaloneNoPermissionsConfig . databaseName ) ;
131
130
} )
132
- . after ( async ( ) => {
131
+ . after ( async t => {
133
132
// Delete created user
133
+ await t . click ( myRedisDatabasePage . myRedisDBButton ) ;
134
+ await myRedisDatabasePage . clickOnDBByName ( ossStandaloneConfig . databaseName ) ;
134
135
await cliPage . sendCommandInCli ( 'acl DELUSER noperm' ) ;
135
136
// Delete database
136
- await deleteStandaloneDatabaseApi ( ossStandaloneNoPermissionsConfig ) ;
137
+ await deleteStandaloneDatabasesApi ( [ ossStandaloneConfig , ossStandaloneNoPermissionsConfig ] ) ;
137
138
} ) ( 'Verify that if user doesn\'t have permissions to run monitor, user can see error message' , async t => {
138
139
// Expand the Profiler
139
140
await t . click ( monitorPage . expandMonitor ) ;
0 commit comments