stepByStepReporter has stopped working for the past 3 CodeceptJS versions

What are you trying to achieve?

Have tests running and using the stepByStepReporter to get screenshots at every step

What do you get instead?

Tests fail because helper.saveScreenshot is not a function or undefined

Provide console output if related. Use --verbose mode for more details.

      I am on page "https://testURL.com/"
      › <Can't save step screenshot: TypeError: helper.saveScreenshot is not a function> undefined
      › <stepByStepReport> Adding screenshot to Allure
    [1] Error | Error: ENOENT: no such file or directory, open '/Users/username/Development/service-automation-framework/output/record_836bf26c43211cbbbc0b086f1e023287/0001.png'
    Emitted | step.failed (I am on page "https://testUrl.com/")
    Emitted | step.finish (I am on page "https://testUrl.com/")
    [1] Error | Error: ENOENT: no such file or directory, open '/Users/username/Development/service-automation-framework/output/record_836bf26c43211cbbbc0b086f1e023287/0001.png'

Details

  • CodeceptJS version: 2.6.7 / 2.6.8 / 2.6.9
  • NodeJS Version: 12.18.1
  • Operating System: macOS Catalina 10.15.6
  • WebDriverIO: 6.4.0