mirror of https://github.com/vector-im/riot-web
add screenshots to logs directory upon failure
parent
6958fdb6e1
commit
f55a448739
1
start.js
1
start.js
|
@ -101,6 +101,7 @@ async function writeLogs(sessions, dir) {
|
|||
fs.writeFileSync(appHtmlName, documentHtml);
|
||||
fs.writeFileSync(networkLogName, session.networkLogs());
|
||||
fs.writeFileSync(consoleLogName, session.consoleLogs());
|
||||
await session.page.screenshot({path: `${userLogDir}/screenshot.png`});
|
||||
}
|
||||
return logs;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue