testit-adapter-cypress 5.0.6 → 5.0.8-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
@@ -142,7 +142,6 @@ Description of methods:
142
142
  - `tms.addTitle` - a dynamic method for adding autotest name specified in the autotest card. If not specified, the name from the displayName method is used
143
143
  - `tms.addDescription` - a dynamic method for adding autotest description specified in the autotest card
144
144
  - `tms.addLabels` - a dynamic method for adding labels listed in the autotest card
145
- - `tms.addLayer` - test pyramid layer in the autotest card (source **Run**). Use `TestLayers` from `testit-js-commons` for recommended values, or any custom string
146
145
  - `tms.addTags` - a dynamic method for adding tags listed in the autotest card
147
146
  - `tms.addLinks` - links in the autotest result
148
147
  - `tms.addAttachments` - uploading files in the autotest result
@@ -157,7 +156,6 @@ Description of methods:
157
156
  #### Simple test
158
157
  ```ts
159
158
  import { getTestRuntime } from "testit-adapter-cypress/runtime";
160
- import { TestLayers } from "testit-js-commons";
161
159
 
162
160
  describe('example to-do app', () => {
163
161
  it('displays two todo items by default', () => {
@@ -168,7 +166,6 @@ describe('example to-do app', () => {
168
166
  tms.addTitle('test title');
169
167
  tms.addDescription('Test description');
170
168
  tms.addLabels('label1', 'label2');
171
- tms.addLayer(TestLayers.API);
172
169
  tms.addTags('tag1', 'tag2');
173
170
  tms.addLinks(
174
171
  {
@@ -6,7 +6,6 @@ declare class TmsCypressTestRuntime implements TestRuntime {
6
6
  #private;
7
7
  constructor();
8
8
  addLabels(...labels: string[]): PromiseLike<void>;
9
- addLayer(layer: string): PromiseLike<void>;
10
9
  addTags(...tags: string[]): PromiseLike<void>;
11
10
  addLinks(...links: Link[]): PromiseLike<void>;
12
11
  addWorkItemIds(...workItemIds: string[]): PromiseLike<void>;
@@ -27,14 +27,6 @@ class TmsCypressTestRuntime {
27
27
  },
28
28
  });
29
29
  }
30
- addLayer(layer) {
31
- return __classPrivateFieldGet(this, _TmsCypressTestRuntime_instances, "m", _TmsCypressTestRuntime_enqueueMessageAsync).call(this, {
32
- type: "metadata",
33
- data: {
34
- layer,
35
- },
36
- });
37
- }
38
30
  addTags(...tags) {
39
31
  return __classPrivateFieldGet(this, _TmsCypressTestRuntime_instances, "m", _TmsCypressTestRuntime_enqueueMessageAsync).call(this, {
40
32
  type: "metadata",
@@ -14,7 +14,6 @@ export interface AttachmentOptions {
14
14
  }
15
15
  export interface TestRuntime {
16
16
  addLabels(...labels: string[]): PromiseLike<void>;
17
- addLayer(layer: string): PromiseLike<void>;
18
17
  addTags(...tags: string[]): PromiseLike<void>;
19
18
  addLinks(...links: Link[]): PromiseLike<void>;
20
19
  addWorkItemIds(...workItemIds: string[]): PromiseLike<void>;
@@ -11,7 +11,6 @@ var ContentType;
11
11
  const noop = { then: () => noop, catch: () => noop };
12
12
  exports.noopRuntime = {
13
13
  addLabels: () => noop,
14
- addLayer: () => noop,
15
14
  addTags: () => noop,
16
15
  addLinks: () => noop,
17
16
  addWorkItemIds: () => noop,
@@ -24,7 +24,6 @@ export interface TestData {
24
24
  namespace?: string;
25
25
  classname?: string;
26
26
  labels: string[];
27
- layer?: string;
28
27
  tags: string[];
29
28
  links: Link[];
30
29
  workItemIds: string[];
package/dist/converter.js CHANGED
@@ -44,7 +44,6 @@ function toAutotestPost(specPath, t) {
44
44
  classname: t.classname,
45
45
  links: t.links?.length ? t.links : [],
46
46
  labels: t.labels?.map((l) => ({ name: l })) ?? [],
47
- layer: t.layer,
48
47
  tags: t.tags?.length ? t.tags : [],
49
48
  steps: t.steps.map(s => stepDataToShortStep(s)),
50
49
  externalKey: t.externalKey,
@@ -174,7 +174,6 @@ type RuntimeMessageBase<T extends string> = {
174
174
  export type RuntimeMetadataMessage = RuntimeMessageBase<"metadata"> & {
175
175
  data: {
176
176
  labels?: Label[];
177
- layer?: string;
178
177
  links?: Link[];
179
178
  tags?: string[];
180
179
  workItemIds?: string[];
package/dist/reporter.js CHANGED
@@ -406,9 +406,6 @@ class TmsCypress {
406
406
  if (data.labels?.length) {
407
407
  current.labels.push(...data.labels);
408
408
  }
409
- if (data.layer) {
410
- current.layer = data.layer;
411
- }
412
409
  if (data.tags?.length) {
413
410
  current.tags.push(...data.tags);
414
411
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testit-adapter-cypress",
3
- "version": "5.0.6",
3
+ "version": "5.0.8-TMS-5.8",
4
4
  "description": "Cypress adapter for Test IT",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -42,7 +42,7 @@
42
42
  "@types/node": "^20.14.2"
43
43
  },
44
44
  "dependencies": {
45
- "testit-js-commons": "5.0.6"
45
+ "testit-js-commons": "5.0.8-TMS-5.8"
46
46
  },
47
47
  "files": [
48
48
  "dist"