@qanalyzer/forge-cypress 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.
package/README.md CHANGED
@@ -5,7 +5,7 @@ Cypress reporter + plugin for **QAnalyzer** (Jira Forge quality hub).
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- npm install -D @qanalyzer/forge-cypress@1.1.1 @qanalyzer/forge-commons@1.1.1 cypress-multi-reporters
8
+ npm install -D @qanalyzer/forge-cypress@1.2.1 @qanalyzer/forge-commons@1.2.1 cypress-multi-reporters
9
9
  ```
10
10
 
11
11
  The pinned versions above track the latest release; `npm run release:bump` keeps them in sync.
package/dist/metadata.js CHANGED
@@ -18,6 +18,14 @@ function metadata(on) {
18
18
  metadata_manager_1.MetadataManager.push('qa-parameters', value);
19
19
  return null;
20
20
  },
21
+ qaIssueKey(value) {
22
+ metadata_manager_1.MetadataManager.push('qa-issue-key', value);
23
+ return null;
24
+ },
25
+ qaIssueKeys(value) {
26
+ metadata_manager_1.MetadataManager.push('qa-issue-keys', value);
27
+ return null;
28
+ },
21
29
  qaIgnore() {
22
30
  metadata_manager_1.MetadataManager.push('qa-ignore', true);
23
31
  return null;
package/dist/mocha.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Programmatic helpers for Cypress Mocha specs (FR63–FR64).
3
- * Prefer Jira issue keys in `it('AUTH-101 ...')` titles (FR43).
3
+ * Prefer `qa.issueKey()` / `qa.issueKeys()` for FR43 (do not embed keys in titles).
4
4
  *
5
5
  * `qa.step()` accepts **synchronous** callbacks only (no async/await) —
6
6
  * Cypress command-queue safe.
@@ -15,6 +15,10 @@ export type QaHelpers = {
15
15
  comment(value: string): void;
16
16
  suite(value: string): void;
17
17
  parameters(values: Record<string, string>): void;
18
+ /** Explicit FR43 issue key (preferred over embedding in titles). */
19
+ issueKey(key: string): void;
20
+ /** Explicit FR43 issue keys (preferred over embedding in titles). */
21
+ issueKeys(keys: string[]): void;
18
22
  ignore(): void;
19
23
  /** Sync callback only (FR64). */
20
24
  step(name: string, body: SyncStepFn): void;
package/dist/mocha.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * Programmatic helpers for Cypress Mocha specs (FR63–FR64).
4
- * Prefer Jira issue keys in `it('AUTH-101 ...')` titles (FR43).
4
+ * Prefer `qa.issueKey()` / `qa.issueKeys()` for FR43 (do not embed keys in titles).
5
5
  *
6
6
  * `qa.step()` accepts **synchronous** callbacks only (no async/await) —
7
7
  * Cypress command-queue safe.
@@ -61,6 +61,22 @@ exports.qa = {
61
61
  }
62
62
  pushLocal('qa-parameters', values);
63
63
  },
64
+ issueKey(key) {
65
+ const cy = cyRef();
66
+ if (cy) {
67
+ pushTask('qaIssueKey', key);
68
+ return;
69
+ }
70
+ pushLocal('qa-issue-key', key);
71
+ },
72
+ issueKeys(keys) {
73
+ const cy = cyRef();
74
+ if (cy) {
75
+ pushTask('qaIssueKeys', keys);
76
+ return;
77
+ }
78
+ pushLocal('qa-issue-keys', keys);
79
+ },
64
80
  ignore() {
65
81
  const cy = cyRef();
66
82
  if (cy) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qanalyzer/forge-cypress",
3
- "version": "1.1.2",
4
- "description": "QAnalyzer Cypress reporter + plugin \u2014 ingest or file modes via @qanalyzer/forge-commons",
3
+ "version": "1.2.1",
4
+ "description": "QAnalyzer Cypress reporter + plugin ingest or file modes via @qanalyzer/forge-commons",
5
5
  "keywords": [
6
6
  "qanalyzer",
7
7
  "cypress",