From 099a3e5f72df778e9111b8834a9ce3643dbe62b1 Mon Sep 17 00:00:00 2001 From: gololdf1sh Date: Tue, 7 Apr 2026 18:09:26 +0300 Subject: [PATCH] Fix for stepByStepReport: cheerio ESM import and missing screenshot capture --- lib/plugin/stepByStepReport.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plugin/stepByStepReport.js b/lib/plugin/stepByStepReport.js index ee1cb52ec..dc107e8f4 100644 --- a/lib/plugin/stepByStepReport.js +++ b/lib/plugin/stepByStepReport.js @@ -4,7 +4,7 @@ import figures from 'figures' import fs from 'fs' import { mkdirp } from 'mkdirp' import path from 'path' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import Container from '../container.js' import recorder from '../recorder.js' @@ -198,7 +198,7 @@ export default function (config) { // Ignore steps from BeforeSuite function if (scenarioFailed && config.disableScreenshotOnFail) return if (step.metaStep && step.metaStep.name === 'BeforeSuite') return - if (!step.test) return // Ignore steps from AfterSuite + if (!currentTest) return // Ignore steps from AfterSuite const fileName = `${pad.substring(0, pad.length - stepNum.toString().length) + stepNum.toString()}.png` if (step.status === 'failed') {