@@ -696,7 +696,7 @@ export class ConfigurationWizardPage {
696
696
const configParameters = await this . getConfigParameters ( data ) ;
697
697
698
698
if ( ! ( await configParameters . length ) ) {
699
- throw new Error ( ` No config parameters found for calibration` ) ;
699
+ throw new Error ( ' No config parameters found for calibration' ) ;
700
700
}
701
701
702
702
for ( const parameter of configParameters ) {
@@ -821,7 +821,7 @@ export class ConfigurationWizardPage {
821
821
}
822
822
823
823
async isUploadHasErrors ( ) : Promise < boolean > {
824
- const errorContainer = await TestUtils . getElementByDataTestId ( ` message-box-error` ) ;
824
+ const errorContainer = await TestUtils . getElementByDataTestId ( ' message-box-error' ) ;
825
825
console . log ( 'Wait error' ) ;
826
826
await browser . wait ( this . until . presenceOf ( errorContainer ) , browser . params . defaultTimeout ) ;
827
827
return true ;
@@ -919,7 +919,7 @@ export class ConfigurationWizardPage {
919
919
resolve ( ) ;
920
920
return ;
921
921
} catch ( e ) {
922
- console . log ( ` received error for cancelling import row. try one more time.` ) ;
922
+ console . log ( ' received error for cancelling import row. try one more time.' ) ;
923
923
}
924
924
} while ( true ) ;
925
925
} ) ;
@@ -952,7 +952,7 @@ export class ConfigurationWizardPage {
952
952
resolve ( row ) ;
953
953
return ;
954
954
} catch ( e ) {
955
- console . log ( ` received error for selecting import row. try one more time.` ) ;
955
+ console . log ( ' received error for selecting import row. try one more time.' ) ;
956
956
}
957
957
} while ( true ) ;
958
958
} ) ;
@@ -1233,7 +1233,7 @@ export class ConfigurationWizardPage {
1233
1233
resolve ( row ) ;
1234
1234
return ;
1235
1235
} catch ( e ) {
1236
- console . log ( ` received error for collecting model type. try one more time.` ) ;
1236
+ console . log ( ' received error for collecting model type. try one more time.' ) ;
1237
1237
}
1238
1238
} while ( true ) ;
1239
1239
} ) ;
@@ -1301,6 +1301,7 @@ export class ConfigurationWizardPage {
1301
1301
1302
1302
async selectAllColorPresets ( ) : Promise < void > {
1303
1303
const presets = await TestUtils . getAllElementsByDataTestId ( 'transform-img' ) ;
1304
+ // eslint-disable-next-line @typescript-eslint/prefer-for-of
1304
1305
for ( let index = 0 ; index < presets . length ; index ++ ) {
1305
1306
const preset = presets [ index ] ;
1306
1307
await TestUtils . scrollToElement ( preset ) ;
@@ -1340,7 +1341,7 @@ export class ConfigurationWizardPage {
1340
1341
. getAttribute ( 'data-test-dataset-id' ) ;
1341
1342
const dataSetPath = path . join ( workbenchFolder , 'datasets' , id . toString ( ) ) ;
1342
1343
return {
1343
- dataSetPath : dataSetPath ,
1344
+ dataSetPath,
1344
1345
images : this . helper . getFilesFromFolder ( dataSetPath , [ 'png' , 'jpg' ] ) ,
1345
1346
} ;
1346
1347
}
@@ -1349,6 +1350,7 @@ export class ConfigurationWizardPage {
1349
1350
await browser . sleep ( 1000 ) ;
1350
1351
const { dataSetPath, images } = await this . getImagesFromDataset ( workbenchFolder , datasetName ) ;
1351
1352
const result = [ ] ;
1353
+ // eslint-disable-next-line @typescript-eslint/prefer-for-of
1352
1354
for ( let index = 0 ; index < images . length ; index ++ ) {
1353
1355
const imagePath = path . join ( dataSetPath , images [ index ] ) ;
1354
1356
result . push ( await this . helper . hashSum ( imagePath ) ) ;
0 commit comments