DEV: Write into Rails's tmp instead of system tmp for somke test screenshot.

This commit is contained in:
Guo Xiang Tan 2018-05-28 16:03:54 +08:00
parent 54338cfdcb
commit 9788ea9cb7

View File

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