codeceptjs / CodeceptJS

Supercharged End 2 End Testing Framework for NodeJS
http://codecept.io
MIT License
4.11k stars 724 forks source link

stepByStepReport stops to save screenshots after the first failure #3293

Open Inok opened 2 years ago

Inok commented 2 years ago

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

    stepByStepReport: {
      enabled: true,
      deleteSuccessful: true,
      /* DISABLED DUE TO https://github.com/codeceptjs/CodeceptJS/issues/3277 */
      /*output: './output/stepByStepReport',*/
      ignoreSteps: ["run"]
    }
jhchill666 commented 2 years ago

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

mnesti commented 2 years ago

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.

github-actions[bot] commented 10 months ago

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