mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
DEV: Allow smoke test failure screenshot path to be configured.
This commit is contained in:
parent
f623740ffc
commit
30279a4843
@ -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 });
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user