File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
tests/critical-path/database Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { t , Selector } from 'testcafe' ;
2
- import { getDatabaseByName } from '../helpers/api/api-database' ;
2
+ import { getDatabaseIdByName } from '../helpers/api/api-database' ;
3
3
4
4
export class MyRedisDatabasePage {
5
5
//-------------------------------------------------------------------------------------------
@@ -192,7 +192,7 @@ export class MyRedisDatabasePage {
192
192
* @param databaseName The name of the database
193
193
*/
194
194
async verifyDatabaseStatusIsVisible ( databaseName : string ) : Promise < void > {
195
- const databaseId = await getDatabaseByName ( databaseName ) ;
195
+ const databaseId = await getDatabaseIdByName ( databaseName ) ;
196
196
const databaseEditBtn = Selector ( `[data-testid=database-status-new-${ databaseId } ]` ) ;
197
197
198
198
await t . expect ( databaseEditBtn . exists ) . ok ( `Database status is not visible for ${ databaseName } ` ) ;
@@ -203,7 +203,7 @@ export class MyRedisDatabasePage {
203
203
* @param databaseName The name of the database
204
204
*/
205
205
async verifyDatabaseStatusIsNotVisible ( databaseName : string ) : Promise < void > {
206
- const databaseId = await getDatabaseByName ( databaseName ) ;
206
+ const databaseId = await getDatabaseIdByName ( databaseName ) ;
207
207
const databaseEditBtn = Selector ( `[data-testid=database-status-new-${ databaseId } ]` ) ;
208
208
209
209
await t . expect ( databaseEditBtn . exists ) . notOk ( `Database status is still visible for ${ databaseName } ` ) ;
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ const databasesToDelete = [
83
83
] ;
84
84
const findImportedRdmDbNameInList = async ( dbName : string ) : Promise < string > => rdmData . dbImportedNames . find ( item => item === dbName ) ! ;
85
85
86
- fixture . only `Import databases`
86
+ fixture `Import databases`
87
87
. meta ( { type : 'critical_path' , rte : rte . none } )
88
88
. page ( commonUrl )
89
89
. beforeEach ( async ( ) => {
You can’t perform that action at this time.
0 commit comments