CodeceptJS
CodeceptJS copied to clipboard
stepByStepReport stops to save screenshots after the first failure
What are you trying to achieve?
I'm trying to get stepByStepReport.
What do you get instead?
After the first failure, there are no screenshots of the following scenarios (successful or not).
It seems that it's because scenarioFailed at stepByStepReport.js isn't set to false before each scenario and so stays true till the end.
The issue is caused by the following PR: https://github.com/codeceptjs/CodeceptJS/pull/3119
Details
- CodeceptJS version: 3.2.3
- NodeJS Version: 16.13.0
- Operating System: Windows 10
- playwright
- Configuration file:
stepByStepReport: {
enabled: true,
deleteSuccessful: true,
/* DISABLED DUE TO https://github.com/codeceptjs/CodeceptJS/issues/3277 */
/*output: './output/stepByStepReport',*/
ignoreSteps: ["run"]
}
This issue is very annoying. Not only does it stop outputing screenshots for failed steps, but it also stops outputing screenshots for failed tryTos. Wrapping in a try {} catch() {} also has no benefit.
Please advise
Hi I have the same issue since the 3.1.3 codeceptjs version. A session with multiple scenario only one contain the slide stepByStepReport complete.
This issue is stale because it has been open for 90 days with no activity.