diff --git a/src/Codeception/Module/VisualCeption.php b/src/Codeception/Module/VisualCeption.php index 8563275..3cc0705 100755 --- a/src/Codeception/Module/VisualCeption.php +++ b/src/Codeception/Module/VisualCeption.php @@ -632,7 +632,7 @@ protected function _initVisualReport() } $filename = 'vcresult'; if ($this->currentEnvironment) { - $filename .= '.' . $this->currentEnvironment; + $filename .= '.' . explode('/', $this->config['referenceImageDir'])[1]; } $this->logFile = Configuration::outputDir() . $filename . '.html';