mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 16:05:45 +08: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 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}`);
|
console.log(`Screenshot of failure taken at ${screenshotPath}`);
|
||||||
return page.screenshot({ path: screenshotPath, fullPage: true });
|
return page.screenshot({ path: screenshotPath, fullPage: true });
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user