mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
DEV: Write into Rails's tmp instead of system tmp for somke test screenshot.
This commit is contained in:
parent
54338cfdcb
commit
9788ea9cb7
@ -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 });
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user