From 07ab649e814e37077b07750b9299b51c72fe367a Mon Sep 17 00:00:00 2001 From: "miherlosev@mail.ru" Date: Tue, 3 Jul 2018 17:53:09 +0300 Subject: [PATCH] revert back correct file path for custom path --- src/screenshots/capturer.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/screenshots/capturer.js b/src/screenshots/capturer.js index 777c5513486..d347e598eb0 100644 --- a/src/screenshots/capturer.js +++ b/src/screenshots/capturer.js @@ -5,6 +5,7 @@ import { ensureDir } from '../utils/promisified-functions'; import { isInQueue, addToQueue } from '../utils/async-queue'; import WARNING_MESSAGE from '../notifications/warning-message'; import escapeUserAgent from '../utils/escape-user-agent'; +import correctFilePath from '../utils/correct-file-path'; export default class Capturer { constructor (baseScreenshotsPath, testEntry, connection, pathPattern, warningLog) { @@ -82,7 +83,9 @@ export default class Capturer { } _getCustomScreenshotPath (customPath) { - return this._joinWithBaseScreenshotPath(customPath); + const correctedCustomPath = correctFilePath(customPath); + + return this._joinWithBaseScreenshotPath(correctedCustomPath); } _getScreenshotPath (forError) {