@qanalyzer/forge-wdio 1.1.1 → 1.2.0

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/dist/helpers.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Programmatic helpers for WebdriverIO Mocha specs (FR125–FR126).
3
- * Prefer Jira issue keys in `it('AUTH-101 ...')` titles (FR43).
3
+ * Prefer `qa.issueKey()` / `qa.issueKeys()` for FR43 (title keys remain a fallback).
4
4
  *
5
5
  * Steps: `await qa.step('name', async (step) => { await step.step('nested', ...) })`.
6
6
  *
@@ -18,6 +18,10 @@ export type QaHelpers = {
18
18
  suite(value: string): void;
19
19
  fields(values: Record<string, string>): void;
20
20
  parameters(values: Record<string, string>): void;
21
+ /** Explicit FR43 issue key (preferred over embedding in titles). */
22
+ issueKey(key: string): void;
23
+ /** Explicit FR43 issue keys (preferred over embedding in titles). */
24
+ issueKeys(keys: string[]): void;
21
25
  ignore(): void;
22
26
  /** Async step with nested `step.step()` (FR125). */
23
27
  step(name: string, body: QaStepFn): Promise<void>;
package/dist/helpers.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * Programmatic helpers for WebdriverIO Mocha specs (FR125–FR126).
4
- * Prefer Jira issue keys in `it('AUTH-101 ...')` titles (FR43).
4
+ * Prefer `qa.issueKey()` / `qa.issueKeys()` for FR43 (title keys remain a fallback).
5
5
  *
6
6
  * Steps: `await qa.step('name', async (step) => { await step.step('nested', ...) })`.
7
7
  *
@@ -58,6 +58,12 @@ exports.qa = {
58
58
  parameters(values) {
59
59
  push('qa-parameters', values);
60
60
  },
61
+ issueKey(key) {
62
+ push('qa-issue-key', key);
63
+ },
64
+ issueKeys(keys) {
65
+ push('qa-issue-keys', keys);
66
+ },
61
67
  ignore() {
62
68
  push('qa-ignore', true);
63
69
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qanalyzer/forge-wdio",
3
- "version": "1.1.1",
4
- "description": "QAnalyzer WebdriverIO reporter + service \u2014 ingest or file modes via @qanalyzer/forge-commons",
3
+ "version": "1.2.0",
4
+ "description": "QAnalyzer WebdriverIO reporter + service ingest or file modes via @qanalyzer/forge-commons",
5
5
  "keywords": [
6
6
  "qanalyzer",
7
7
  "webdriverio",