File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { Selector , t } from 'testcafe' ;
2
2
import * as fs from 'fs' ;
3
3
import { MyRedisDatabasePage } from '../pageObjects' ;
4
- import { getDatabaseIdByName } from '../helpers/api/api-database' ;
4
+ import { DatabaseAPIRequests } from '../helpers/api/api-database' ;
5
5
6
6
const myRedisDatabasePage = new MyRedisDatabasePage ( ) ;
7
+ const databaseAPIRequests = new DatabaseAPIRequests ( ) ;
7
8
8
9
export class DatabasesActions {
9
10
/**
@@ -43,7 +44,7 @@ export class DatabasesActions {
43
44
*/
44
45
async selectDatabasesByNames ( databases : string [ ] ) : Promise < void > {
45
46
for ( const db of databases ) {
46
- const databaseId = await getDatabaseIdByName ( db ) ;
47
+ const databaseId = await databaseAPIRequests . getDatabaseIdByName ( db ) ;
47
48
const databaseCheckbox = Selector ( `[data-test-subj=checkboxSelectRow-${ databaseId } ]` ) ;
48
49
await t . click ( databaseCheckbox ) ;
49
50
}
Original file line number Diff line number Diff line change 1
- import request from 'supertest' ;
1
+ import * as request from 'supertest' ;
2
2
import { Common } from '../common' ;
3
3
import { Methods } from '../constants' ;
4
4
You can’t perform that action at this time.
0 commit comments