mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-06 06:28:27 +00:00
add screenshots to logs directory upon failure
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user