Skip to content

records.html file is missing in stepByStepReport #3292

Closed
@Inok

Description

@Inok

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions