@qanalyzer/forge-cucumberjs 1.2.0 → 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
|
|
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
|
|
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
|
}
|
package/dist/report-builder.js
CHANGED
|
@@ -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);
|