Skip to content

Commit

Permalink
Merge pull request #11 from ktryniszewski-mdsol/fixSaveScreenshot
Browse files Browse the repository at this point in the history
Save screenshot for metaSteps also
  • Loading branch information
ktryniszewski-mdsol authored Jun 8, 2023
2 parents 44b4690 + c09237e commit 9cdd733
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ module.exports = function (config) {
});

event.dispatcher.on(event.step.finished, (step) => {
if (step.helperMethod === 'saveScreenshot') {
const filePath = path.join(global.output_dir, step.args[0]);
if (getRootMetaStep(step).helperMethod === 'saveScreenshot') {
const filePath = path.join(global.output_dir, getRootMetaStep(step).args[0]);
addScreenshotToReport(filePath);
}
});
Expand Down

0 comments on commit 9cdd733

Please sign in to comment.