@wdio/allure-reporter
Advanced tools
Comparing version 8.16.12 to 8.16.14
@@ -360,14 +360,12 @@ import { stringify } from 'csv-stringify/sync'; | ||
const { disableWebdriverStepsReporting, disableWebdriverScreenshotsReporting } = this._options; | ||
if (!this._state.currentStep || this._isMultiremote) { | ||
return; | ||
} | ||
const { value: commandResult } = command?.result || {}; | ||
const isScreenshot = isScreenshotCommand(command); | ||
const { value: commandResult } = command?.result || {}; | ||
if (!disableWebdriverScreenshotsReporting && isScreenshot && commandResult) { | ||
this.attachScreenshot('Screenshot', Buffer.from(commandResult, 'base64')); | ||
} | ||
if (!disableWebdriverStepsReporting) { | ||
this.attachJSON('Response', commandResult); | ||
this.endStep(AllureStatus.PASSED); | ||
if (disableWebdriverStepsReporting || this._isMultiremote || !this._state.currentStep) { | ||
return; | ||
} | ||
this.attachJSON('Response', commandResult); | ||
this.endStep(AllureStatus.PASSED); | ||
} | ||
@@ -374,0 +372,0 @@ onHookStart(hook) { |
{ | ||
"name": "@wdio/allure-reporter", | ||
"version": "8.16.12", | ||
"version": "8.16.14", | ||
"description": "A WebdriverIO reporter plugin to create Allure Test Reports", | ||
@@ -52,3 +52,3 @@ "author": "Boris Osipov <osipov.boris@gmail.com>", | ||
}, | ||
"gitHead": "6a010586db579a5019b490172f8ffc3939c9e852" | ||
"gitHead": "b74f21bcf2a05efbf3c23a67e20bcb63db2620b6" | ||
} |
Sorry, the diff of this file is not supported yet
90434
1890