CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

`records.html` file is missing in stepByStepReport

Open Inok opened this issue 3 years ago • 1 comments

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

Inok avatar Apr 13 '22 20:04 Inok

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]