allure-js icon indicating copy to clipboard operation
allure-js copied to clipboard

Links on report do not export "name" field anymore

Open jacxon4 opened this issue 1 year ago • 0 comments

Since version 2.0.0-beta.19 the Links are not publishing the name field on the result report. (See diff between beta.18 here)

The Type definition still set that field as optional (as per CucumberAllureWorld) but is not propagated to the final object on parseTagsLinks method

https://github.com/allure-framework/allure-js/blob/f7fcf047505f88794b7ed84f63d038573aa4a42d/packages/allure-cucumberjs/src/CucumberJSAllureReporter.ts#L225-L227

Proposal:

  • Continue following same approach as before and inject the result of the tagValue as name
  • Allow setting name field with a pattern or hook

jacxon4 avatar Mar 14 '23 11:03 jacxon4