Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/plugin/stepByStepReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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') {
Expand Down