mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -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 takeFailureScreenshot = function() {
|
||||||
const screenshotPath = '/tmp/smoke-test.png';
|
const screenshotPath = 'tmp/smoke-test.png';
|
||||||
console.log(`Screenshot of failure taken at ${screenshotPath}`);
|
console.log(`Screenshot of failure taken at ${screenshotPath}`);
|
||||||
return page.screenshot({ path: screenshotPath, fullPage: true });
|
return page.screenshot({ path: screenshotPath, fullPage: true });
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user