Skip to content

Commit e54722c

Browse files
committed
fix for ts error basePage
1 parent 302660e commit e54722c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/e2e/helpers/insights.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import * as path from 'path';
22
import * as fs from 'fs-extra';
3-
import { BasePage } from '../pageObjects';
43
import { syncFeaturesApi } from './api/api-info';
54
import { DatabaseScripts, DbTableParameters } from './database-scripts';
5+
import { t } from 'testcafe';
66

7-
const basePage = new BasePage();
87
const dbTableParams: DbTableParameters = {
98
tableName: 'features_config',
109
columnName: 'controlNumber',
@@ -41,7 +40,7 @@ export async function updateControlNumber(controlNumber: number): Promise<void>
4140
await syncFeaturesApi();
4241
await DatabaseScripts.updateColumnValueInDBTable({ ...dbTableParams, rowValue: controlNumber });
4342
await syncFeaturesApi();
44-
await basePage.reloadPage();
43+
await t.eval(() => location.reload());
4544
}
4645

4746
/**

0 commit comments

Comments
 (0)