@wdio/allure-reporter 9.2.2 → 9.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/build/index.js +1 -1
  2. package/package.json +4 -4
package/build/index.js CHANGED
@@ -700,7 +700,7 @@ ${this._consoleOutput}`;
700
700
  }
701
701
  onAfterCommand(command) {
702
702
  const { disableWebdriverStepsReporting, disableWebdriverScreenshotsReporting } = this._options;
703
- const { value: commandResult } = command?.result || {};
703
+ const commandResult = command?.result?.value || command?.result?.error?.name || {};
704
704
  const isScreenshot = isScreenshotCommand(command);
705
705
  if (!disableWebdriverScreenshotsReporting && isScreenshot && commandResult) {
706
706
  this.attachScreenshot("Screenshot", Buffer.from(commandResult, "base64"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/allure-reporter",
3
- "version": "9.2.2",
3
+ "version": "9.4.2",
4
4
  "description": "A WebdriverIO reporter plugin to create Allure Test Reports",
5
5
  "author": "Boris Osipov <osipov.boris@gmail.com>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-allure-reporter",
@@ -37,8 +37,8 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@types/node": "^20.1.0",
40
- "@wdio/reporter": "9.2.2",
41
- "@wdio/types": "9.2.2",
40
+ "@wdio/reporter": "9.4.2",
41
+ "@wdio/types": "9.4.2",
42
42
  "allure-js-commons": "^2.5.0",
43
43
  "csv-stringify": "^6.0.4",
44
44
  "strip-ansi": "^7.1.0"
@@ -49,5 +49,5 @@
49
49
  "devDependencies": {
50
50
  "rimraf": "^6.0.1"
51
51
  },
52
- "gitHead": "a82feee9b819e978b0d75dc899dd8284303935e1"
52
+ "gitHead": "e42d3e8d6958fd9a734fe1d9a9768357b6045893"
53
53
  }