CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

stepByStepReport stops to save screenshots after the first failure

Open Inok opened this issue 3 years ago • 3 comments

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"]
    }

Inok avatar Apr 13 '22 20:04 Inok

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

jhchill666 avatar May 18 '22 06:05 jhchill666

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.

mnesti avatar Jun 22 '22 08:06 mnesti

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Dec 14 '23 02:12 github-actions[bot]