testit-adapter-codecept 5.0.8 → 5.0.9-TMS-5.8

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
@@ -140,14 +140,12 @@ $ npx codeceptjs run --grep "$(cat tmp/filter.txt)"
140
140
  Methods can be used to specify information about autotest.
141
141
 
142
142
  Description of metadata methods:
143
- - `workItemId` - a method that links an autotest with a manual test. Receives a single globalId
144
- - `workItemIds` - deprecated, use `workItemId` instead
143
+ - `workItemIds` - a method that links autotests with manual tests. Receives the array of manual tests' IDs
145
144
  - `displayName` - internal autotest name (used in Test IT)
146
145
  - `externalId` - unique internal autotest ID (used in Test IT)
147
146
  - `title` - autotest name specified in the autotest card. If not specified, the name from the displayName method is used
148
147
  - `description` - autotest description specified in the autotest card
149
148
  - `labels` - labels listed in the autotest card
150
- - `layer` - test pyramid layer in the autotest card (source **Run**). Use `TestLayers` from `testit-js-commons` for recommended values, or any custom string
151
149
  - `tags` - tags listed in the autotest card
152
150
  - `link` - links listed in the autotest card
153
151
  - `namespace` - directory in the TMS system
@@ -172,7 +170,6 @@ Scenario(
172
170
  title: 'Title',
173
171
  description: 'Description',
174
172
  labels: ['Custom label'],
175
- layer: 'API',
176
173
  links: [
177
174
  {
178
175
  title: 'Google about this error',
@@ -182,7 +179,7 @@ Scenario(
182
179
  hasInfo: true
183
180
  }
184
181
  ],
185
- workItemId: '1140'
182
+ workItemIds: ['1140']
186
183
  },
187
184
  ({ I }) => {
188
185
  I.amOnPage('https://github.com');
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TestsBuilder = void 0;
4
4
  const utils_1 = require("../common/utils");
5
- const testit_js_commons_1 = require("testit-js-commons");
6
5
  class TestsBuilder {
7
6
  static build(test) {
8
7
  var _a, _b, _c, _d, _e, _f;
@@ -16,7 +15,6 @@ class TestsBuilder {
16
15
  title: config === null || config === void 0 ? void 0 : config.title,
17
16
  name: (_a = config === null || config === void 0 ? void 0 : config.displayName) !== null && _a !== void 0 ? _a : test.title,
18
17
  labels: ((_b = config === null || config === void 0 ? void 0 : config.labels) !== null && _b !== void 0 ? _b : []).map((label) => ({ name: label })),
19
- layer: config === null || config === void 0 ? void 0 : config.layer,
20
18
  tags: (_c = config === null || config === void 0 ? void 0 : config.tags) !== null && _c !== void 0 ? _c : [],
21
19
  description: (_d = config === null || config === void 0 ? void 0 : config.description) !== null && _d !== void 0 ? _d : "",
22
20
  steps: this.buildManySteps(test.steps),
@@ -26,7 +24,6 @@ class TestsBuilder {
26
24
  externalId: (_f = (0, utils_1.useDefaultHash)(test)) !== null && _f !== void 0 ? _f : (0, utils_1.useCompositeHash)(test),
27
25
  namespace: config === null || config === void 0 ? void 0 : config.nameSpace,
28
26
  classname: config === null || config === void 0 ? void 0 : config.className,
29
- workItemIds: resolveWorkItemIds(config),
30
27
  externalKey: test.title,
31
28
  };
32
29
  }
@@ -41,13 +38,3 @@ class TestsBuilder {
41
38
  }
42
39
  }
43
40
  exports.TestsBuilder = TestsBuilder;
44
- function resolveWorkItemIds(config) {
45
- var _a;
46
- if ((_a = config === null || config === void 0 ? void 0 : config.workItemIds) === null || _a === void 0 ? void 0 : _a.length) {
47
- testit_js_commons_1.logger.warn("workItemIds is deprecated. Use workItemId with a single globalId instead.");
48
- }
49
- if (config === null || config === void 0 ? void 0 : config.workItemId) {
50
- return [config.workItemId];
51
- }
52
- return config === null || config === void 0 ? void 0 : config.workItemIds;
53
- }
@@ -7,13 +7,8 @@ export declare namespace Origin {
7
7
  externalId?: string;
8
8
  links: Link[];
9
9
  labels?: string[];
10
- layer?: string;
11
10
  tags?: string[];
12
- workItemId?: string;
13
- /**
14
- * @deprecated Use workItemId with a single globalId instead.
15
- */
16
- workItemIds?: string[];
11
+ workItemIds?: [];
17
12
  classname?: string;
18
13
  namespace?: string;
19
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testit-adapter-codecept",
3
- "version": "5.0.8",
3
+ "version": "5.0.9-TMS-5.8",
4
4
  "description": "Codecept adapter for Test IT",
5
5
  "keywords": [],
6
6
  "author": {
@@ -15,7 +15,7 @@
15
15
  "watch": "tsc -p tsconfig.json -w"
16
16
  },
17
17
  "dependencies": {
18
- "testit-js-commons": "5.0.8"
18
+ "testit-js-commons": "5.0.9-TMS-5.8"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@codeceptjs/configure": "^0.10.0",