Skip to content

A platform for community discussion. Free, open, simple.

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

Guo Xiang Tan9788ea9cb7f6
diff --git a/test/smoke_test.js b/test/smoke_test.js
index c8914c970a8..6ec52d55be4 100644
--- a/test/smoke_test.js
+++ b/test/smoke_test.js
@@ -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 });
};