diff --git a/src/Codeception/Lib/InnerBrowser.php b/src/Codeception/Lib/InnerBrowser.php index fbc9f7e..c1eb336 100644 --- a/src/Codeception/Lib/InnerBrowser.php +++ b/src/Codeception/Lib/InnerBrowser.php @@ -93,7 +93,7 @@ public function _failed(TestInterface $test, $fail) $extension = isset($extensions[$responseMimeType]) ? $extensions[$responseMimeType] : 'html'; $filename = mb_strcut($filename, 0, 244, 'utf-8') . '.fail.' . $extension; - $this->_savePageSource($report = codecept_output_dir() . $filename); + $this->_savePageSource($report = codecept_output_dir($this->_getConfig('output_dir_suffix')) . $filename); $test->getMetadata()->addReport('html', $report); $test->getMetadata()->addReport('response', $report); }