@qanalyzer/forge-cucumberjs 1.1.2 → 1.2.1

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.
@@ -17,6 +17,6 @@ type TagLike = Pick<PickleTag, 'name'> | {
17
17
  * No competitor tag names — destination is Jira.
18
18
  */
19
19
  export declare function parseQaTags(tags: readonly TagLike[]): CucumberQaTagMeta;
20
- /** Prefer tag title; else prefix issue keys onto pickle name when missing. */
20
+ /** Prefer `@title:` tag value; otherwise keep the pickle name as-is (no issue-key prefix). */
21
21
  export declare function resolveScenarioTitle(pickleName: string, meta: CucumberQaTagMeta): string;
22
22
  export {};
@@ -76,13 +76,9 @@ function parseQaTags(tags) {
76
76
  }
77
77
  return meta;
78
78
  }
79
- /** Prefer tag title; else prefix issue keys onto pickle name when missing. */
79
+ /** Prefer `@title:` tag value; otherwise keep the pickle name as-is (no issue-key prefix). */
80
80
  function resolveScenarioTitle(pickleName, meta) {
81
81
  if (meta.title)
82
82
  return meta.title;
83
- const key = meta.issueKeys[0];
84
- if (key && !pickleName.includes(key)) {
85
- return `${key} ${pickleName}`;
86
- }
87
83
  return pickleName;
88
84
  }
@@ -102,6 +102,9 @@ function scenarioToAssertion(scenario, attachEntries = []) {
102
102
  if (tagMeta.title) {
103
103
  entries.push({ type: 'qa-title', body: tagMeta.title });
104
104
  }
105
+ if (tagMeta.issueKeys.length > 0) {
106
+ entries.push({ type: 'qa-issue-keys', body: tagMeta.issueKeys });
107
+ }
105
108
  for (const step of scenario.steps) {
106
109
  entries.push({ type: 'qa-step', body: step.text });
107
110
  const stepStatus = mapStepStatus(step.status);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qanalyzer/forge-cucumberjs",
3
- "version": "1.1.2",
4
- "description": "QAnalyzer CucumberJS formatter \u2014 ingest or file modes via @qanalyzer/forge-commons",
3
+ "version": "1.2.1",
4
+ "description": "QAnalyzer CucumberJS formatter ingest or file modes via @qanalyzer/forge-commons",
5
5
  "keywords": [
6
6
  "qanalyzer",
7
7
  "cucumber",