mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
DEV: Write into Rails's tmp instead of system tmp for somke test screenshot.
This commit is contained in:
parent
54338cfdcb
commit
9788ea9cb7
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue