testit-adapter-playwright 3.7.0 → 3.7.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
@@ -125,7 +125,8 @@ Description of metadata methods:
125
125
  - `testit.externalId` - ID of the autotest within the project in the Test IT System
126
126
  - `testit.title` - title in the autotest card
127
127
  - `testit.description` - description in the autotest card
128
- - `testit.labels` - tags in the work item
128
+ - `testit.labels` - labels in the autotest card
129
+ - `testit.tags` - tags in the autotest card
129
130
  - `testit.links` - links in the autotest card
130
131
  - `testit.namespace` - directory in the TMS system (default - directory's name of test)
131
132
  - `testit.classname` - subdirectory in the TMS system (default - file's name of test)
package/dist/converter.js CHANGED
@@ -16,6 +16,7 @@ class Converter {
16
16
  title: autotestData.title,
17
17
  description: autotestData.description,
18
18
  labels: autotestData.labels,
19
+ tags: autotestData.tags,
19
20
  links: autotestData.links,
20
21
  namespace: autotestData.namespace,
21
22
  classname: autotestData.classname,
package/dist/labels.d.ts CHANGED
@@ -6,6 +6,7 @@ export interface MetadataMessage {
6
6
  title?: string;
7
7
  description?: string;
8
8
  labels?: Label[];
9
+ tags?: string[];
9
10
  links?: Link[];
10
11
  namespace?: string;
11
12
  classname?: string;
@@ -54,6 +55,7 @@ export declare class testit {
54
55
  static title(value: string): Promise<void>;
55
56
  static description(value: string): Promise<void>;
56
57
  static labels(value: string[]): Promise<void>;
58
+ static tags(value: string[]): Promise<void>;
57
59
  static links(value: Link[]): Promise<void>;
58
60
  static namespace(value: string): Promise<void>;
59
61
  static classname(value: string): Promise<void>;
package/dist/labels.js CHANGED
@@ -98,6 +98,11 @@ class testit {
98
98
  labels: value.map((label) => ({ name: label })),
99
99
  });
100
100
  }
101
+ static async tags(value) {
102
+ await this.addMetadataAttachment({
103
+ tags: value,
104
+ });
105
+ }
101
106
  static async links(value) {
102
107
  await this.addMetadataAttachment({
103
108
  links: value,
package/dist/reporter.js CHANGED
@@ -145,6 +145,9 @@ class TmsReporter {
145
145
  if (metadata.labels) {
146
146
  autotestData.labels = metadata.labels;
147
147
  }
148
+ if (metadata.tags) {
149
+ autotestData.tags = metadata.tags;
150
+ }
148
151
  if (metadata.links) {
149
152
  autotestData.links = metadata.links;
150
153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testit-adapter-playwright",
3
- "version": "3.7.0",
3
+ "version": "3.7.1",
4
4
  "description": "Playwright adapter for Test IT",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -40,7 +40,7 @@
40
40
  "prettier": "^3.0.1"
41
41
  },
42
42
  "dependencies": {
43
- "testit-js-commons": "3.7.0"
43
+ "testit-js-commons": "3.7.1"
44
44
  },
45
45
  "files": [
46
46
  "dist"