system-testing 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/system-test.js +4 -1
package/package.json
CHANGED
package/src/system-test.js
CHANGED
|
@@ -326,11 +326,14 @@ export default class SystemTest {
|
|
|
326
326
|
const now = new Date()
|
|
327
327
|
const screenshotPath = `${path}/${moment(now).format("YYYY-MM-DD-HH-MM-SS")}.png`
|
|
328
328
|
const htmlPath = `${path}/${moment(now).format("YYYY-MM-DD-HH-MM-SS")}.html`
|
|
329
|
+
const logsPath = `${path}/${moment(now).format("YYYY-MM-DD-HH-MM-SS")}.logs.txt`
|
|
330
|
+
const logsText = await this.getBrowserLogs()
|
|
329
331
|
const html = await this.getHTML()
|
|
330
332
|
const htmlPretty = prettify(html)
|
|
331
333
|
|
|
332
|
-
await fs.writeFile(screenshotPath, imageContent, "base64")
|
|
333
334
|
await fs.writeFile(htmlPath, htmlPretty)
|
|
335
|
+
await fs.writeFile(logsPath, logsText.join("\n"))
|
|
336
|
+
await fs.writeFile(screenshotPath, imageContent, "base64")
|
|
334
337
|
|
|
335
338
|
console.log("Screenshot:", screenshotPath)
|
|
336
339
|
console.log("HTML:", htmlPath)
|