allure-playwright
Advanced tools
Comparing version
@@ -277,3 +277,3 @@ "use strict"; | ||
var testUuid = this.allureResultsUuids.get(test.id); | ||
if (step.category === "attach" && !isHookStep) { | ||
if (["test.attach", "attach"].includes(step.category) && !isHookStep) { | ||
var _this$allureRuntime, _this$attachmentSteps; | ||
@@ -295,3 +295,3 @@ var currentStep = (_this$allureRuntime = this.allureRuntime) === null || _this$allureRuntime === void 0 ? void 0 : _this$allureRuntime.currentStep(testUuid); | ||
var stack = isBeforeHookDescendant ? this.beforeHooksStepsStack.get(test.id) : this.afterHooksStepsStack.get(test.id); | ||
if (step.category === "attach") { | ||
if (["test.attach", "attach"].includes(step.category)) { | ||
stack.startStep(baseStep); | ||
@@ -331,4 +331,4 @@ var attachStack = isBeforeHookDescendant ? this.beforeHooksAttachmentsStack : this.afterHooksAttachmentsStack; | ||
} | ||
// ignore attach steps since attachments are already in the report | ||
if (step.category === "attach") { | ||
// ignore test.attach steps since attachments are already in the report | ||
if (["test.attach", "attach"].includes(step.category)) { | ||
return; | ||
@@ -610,3 +610,4 @@ } | ||
stdout: [], | ||
startTime: this.globalStartTime | ||
startTime: this.globalStartTime, | ||
annotations: [] | ||
}); | ||
@@ -613,0 +614,0 @@ case 3: |
@@ -257,3 +257,3 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } | ||
var testUuid = this.allureResultsUuids.get(test.id); | ||
if (step.category === "attach" && !isHookStep) { | ||
if (["test.attach", "attach"].includes(step.category) && !isHookStep) { | ||
var _this$allureRuntime, _this$attachmentSteps; | ||
@@ -275,3 +275,3 @@ var currentStep = (_this$allureRuntime = this.allureRuntime) === null || _this$allureRuntime === void 0 ? void 0 : _this$allureRuntime.currentStep(testUuid); | ||
var stack = isBeforeHookDescendant ? this.beforeHooksStepsStack.get(test.id) : this.afterHooksStepsStack.get(test.id); | ||
if (step.category === "attach") { | ||
if (["test.attach", "attach"].includes(step.category)) { | ||
stack.startStep(baseStep); | ||
@@ -311,4 +311,4 @@ var attachStack = isBeforeHookDescendant ? this.beforeHooksAttachmentsStack : this.afterHooksAttachmentsStack; | ||
} | ||
// ignore attach steps since attachments are already in the report | ||
if (step.category === "attach") { | ||
// ignore test.attach steps since attachments are already in the report | ||
if (["test.attach", "attach"].includes(step.category)) { | ||
return; | ||
@@ -590,3 +590,4 @@ } | ||
stdout: [], | ||
startTime: this.globalStartTime | ||
startTime: this.globalStartTime, | ||
annotations: [] | ||
}); | ||
@@ -593,0 +594,0 @@ case 3: |
{ | ||
"name": "allure-playwright", | ||
"version": "3.3.1", | ||
"version": "3.3.2", | ||
"description": "Allure Playwright integration", | ||
@@ -64,3 +64,3 @@ "keywords": [ | ||
"dependencies": { | ||
"allure-js-commons": "3.3.1" | ||
"allure-js-commons": "3.3.2" | ||
}, | ||
@@ -73,3 +73,3 @@ "devDependencies": { | ||
"@babel/preset-typescript": "^7.27.1", | ||
"@playwright/test": "^1.45.1", | ||
"@playwright/test": "^1.54.1", | ||
"@stylistic/eslint-plugin": "^2.6.1", | ||
@@ -83,3 +83,3 @@ "@types/babel__core": "^7.20.5", | ||
"allure-commandline": "^2.29.0", | ||
"allure-vitest": "3.3.1", | ||
"allure-vitest": "3.3.2", | ||
"eslint": "^8.57.0", | ||
@@ -86,0 +86,0 @@ "eslint-config-prettier": "^10.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
341462
0.2%2640
0.08%+ Added
- Removed
Updated