@@ -600,7 +600,7 @@ export class AppiumDriver {
600600 copy ( pathActualImage , pathActualImageToReportsFolder , false ) ;
601601
602602 console . log ( "Remove the 'actual' suffix to continue using the image as expected one " , pathExpectedImage ) ;
603- this . _args . testReporterLog ( basename ( pathActualImage ) ) ;
603+ this . _args . testReporterLog ( basename ( pathActualImage ) . replace ( / \. \w { 3 , 3 } $ / ig , "" ) ) ;
604604 this . _args . testReporterLog ( join ( this . _logPath , basename ( pathActualImage ) ) ) ;
605605
606606 return false ;
@@ -625,15 +625,17 @@ export class AppiumDriver {
625625 await this . prepareImageToCompare ( pathActualImage , rect ) ;
626626 result = await this . _imageHelper . compareImages ( pathActualImage , pathExpectedImage , pathDiffImage , tolerance , toleranceType ) ;
627627 if ( checkImageLogType ( this . _args . testReporter , LogImageType . everyImage ) ) {
628- this . _args . testReporterLog ( " Actual image: " ) ;
628+ this . _args . testReporterLog ( ` Actual image: ${ basename ( pathActualImage ) . replace ( / \. \w { 3 , 3 } $ / ig , "" ) } ` ) ;
629629 this . _args . testReporterLog ( join ( this . _logPath , basename ( pathActualImage ) ) ) ;
630630 }
631631 counter ++ ;
632632 }
633633
634634 if ( ! checkImageLogType ( this . _args . testReporter , LogImageType . everyImage ) ) {
635- this . _args . testReporterLog ( " Actual image: " ) ;
635+ this . _args . testReporterLog ( ` Actual image: ${ basename ( pathDiffImage ) . replace ( / \. \w { 3 , 3 } $ / ig , "" ) } ` ) ;
636636 this . _args . testReporterLog ( join ( this . _logPath , basename ( pathDiffImage ) ) ) ;
637+ this . _args . testReporterLog ( `Actual image: ${ basename ( pathActualImage ) . replace ( / \. \w { 3 , 3 } $ / ig, "" ) } ` ) ;
638+ this . _args . testReporterLog ( join ( this . _logPath , basename ( pathActualImage ) ) ) ;
637639 }
638640 } else {
639641 if ( existsSync ( pathDiffImage ) ) {
0 commit comments