CodeceptJS
CodeceptJS copied to clipboard
`records.html` file is missing in stepByStepReport
What are you trying to achieve?
I'm trying to get step by step report.
What do you get instead?
records.html file is missing in the output folder.
It seems that it's due to the following condition in stepByStepReport.js:
event.dispatcher.on(event.all.result, () => {
if (!Object.keys(slides).length) return;
// ...
// create `records.html`
I checked that slides variable contains an empty object in my case. It's because the last test had no screenshots.
I think that recordedTests should be checked instead of slides, since slides state depends only from the last test.
Details
- CodeceptJS version: 3.2.3
- NodeJS Version: 16.13.0
- Operating System: Windows 10
- playwright
- Configuration file:
plugins: {
pauseOnFail: {},
retryFailedStep: {
enabled: true
},
tryTo: {
enabled: true
},
screenshotOnFail: {
enabled: false
},
stepByStepReport: {
enabled: true,
deleteSuccessful: true,
/* DISABLED DUE TO https://github.com/codeceptjs/CodeceptJS/issues/3277 */
/*output: './output/stepByStepReport',*/
ignoreSteps: ["run"]
}
}
This issue is stale because it has been open for 90 days with no activity.