Skip to content

Commit

Permalink
revert back correct file path for custom path
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Jul 3, 2018
1 parent 5f761de commit 07ab649
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/screenshots/capturer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -82,7 +83,9 @@ export default class Capturer {
}

_getCustomScreenshotPath (customPath) {
return this._joinWithBaseScreenshotPath(customPath);
const correctedCustomPath = correctFilePath(customPath);

return this._joinWithBaseScreenshotPath(correctedCustomPath);
}

_getScreenshotPath (forError) {
Expand Down

0 comments on commit 07ab649

Please sign in to comment.