add screenshots to logs directory upon failure
This commit is contained in:
parent
6958fdb6e1
commit
f55a448739
1 changed files with 1 additions and 0 deletions
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 a new issue