Skip to content

Commit c09237e

Browse files
Save screenshot for metaSteps also
1 parent 44b4690 commit c09237e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ module.exports = function (config) {
7575
});
7676

7777
event.dispatcher.on(event.step.finished, (step) => {
78-
if (step.helperMethod === 'saveScreenshot') {
79-
const filePath = path.join(global.output_dir, step.args[0]);
78+
if (getRootMetaStep(step).helperMethod === 'saveScreenshot') {
79+
const filePath = path.join(global.output_dir, getRootMetaStep(step).args[0]);
8080
addScreenshotToReport(filePath);
8181
}
8282
});

0 commit comments

Comments
 (0)