diff --git a/packages/allure-playwright/src/index.ts b/packages/allure-playwright/src/index.ts index a618c88a5..763492583 100644 --- a/packages/allure-playwright/src/index.ts +++ b/packages/allure-playwright/src/index.ts @@ -197,6 +197,15 @@ export class AllureReporter implements ReporterV2 { result.labels!.push(...tags); } + // TODO remove skip and fixme type + const annotations: Label[] = test.annotations?.filter( + (annotation) => annotation.type !== "skip" && annotation.type !== "fixme", + ).map((annotation) => ({ + name: annotation.type, + value: annotation.description?.startsWith("@") ? annotation.description.substring(1) : annotation.description, + })); + result.labels!.push(...annotations); + if (project?.name) { result.parameters!.push({ name: "Project", value: project.name }); }