DEV: Allow smoke test failure screenshot path to be configured.

This commit is contained in:
Guo Xiang Tan 2018-05-30 15:42:46 +08:00
parent f623740ffc
commit 30279a4843
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ const path = require('path');
});
const takeFailureScreenshot = function() {
const screenshotPath = 'tmp/smoke-test.png';
const screenshotPath = `${process.env.SCREENSHOT_PATH || 'tmp'}/smoke-test.png`;
console.log(`Screenshot of failure taken at ${screenshotPath}`);
return page.screenshot({ path: screenshotPath, fullPage: true });
};