File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import figures from 'figures'
44import fs from 'fs'
55import { mkdirp } from 'mkdirp'
66import path from 'path'
7- import cheerio from 'cheerio'
7+ import * as cheerio from 'cheerio'
88
99import Container from '../container.js'
1010import recorder from '../recorder.js'
@@ -198,7 +198,7 @@ export default function (config) {
198198 // Ignore steps from BeforeSuite function
199199 if ( scenarioFailed && config . disableScreenshotOnFail ) return
200200 if ( step . metaStep && step . metaStep . name === 'BeforeSuite' ) return
201- if ( ! step . test ) return // Ignore steps from AfterSuite
201+ if ( ! currentTest ) return // Ignore steps from AfterSuite
202202
203203 const fileName = `${ pad . substring ( 0 , pad . length - stepNum . toString ( ) . length ) + stepNum . toString ( ) } .png`
204204 if ( step . status === 'failed' ) {
You can’t perform that action at this time.
0 commit comments