testit-adapter-playwright 5.0.5 → 5.0.6
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 +3 -0
- package/dist/converter.js +1 -0
- package/dist/labels.d.ts +2 -0
- package/dist/labels.js +5 -0
- package/dist/metadata-store.js +3 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -143,6 +143,7 @@ Description of metadata methods:
|
|
|
143
143
|
- `testit.title` - title in the autotest card
|
|
144
144
|
- `testit.description` - description in the autotest card
|
|
145
145
|
- `testit.labels` - labels in the autotest card
|
|
146
|
+
- `testit.layer` - test pyramid layer in the autotest card (source **Run**). Use `TestLayers` from `testit-js-commons` for recommended values (`E2E`, `UI`, `API`, `Contract`, `Integration`, `Component`, `Unit`), or any custom string
|
|
146
147
|
- `testit.tags` - tags in the autotest card
|
|
147
148
|
- `testit.links` - links in the autotest card
|
|
148
149
|
- `testit.namespace` - directory in the TMS system (default - directory's name of test)
|
|
@@ -160,6 +161,7 @@ Description of methods:
|
|
|
160
161
|
```js
|
|
161
162
|
import { test } from "@playwright/test";
|
|
162
163
|
import { testit } from "testit-adapter-playwright";
|
|
164
|
+
import { TestLayers } from "testit-js-commons";
|
|
163
165
|
|
|
164
166
|
test('All annotations', async () => {
|
|
165
167
|
testit.externalId('all_annotations');
|
|
@@ -167,6 +169,7 @@ test('All annotations', async () => {
|
|
|
167
169
|
testit.title('All annotations title');
|
|
168
170
|
testit.description('Test with all annotations');
|
|
169
171
|
testit.labels(['label1', 'label2']);
|
|
172
|
+
await testit.layer(TestLayers.API);
|
|
170
173
|
|
|
171
174
|
testit.addMessage('This is a message');
|
|
172
175
|
testit.addLinks([
|
package/dist/converter.js
CHANGED
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
|
+
layer?: string;
|
|
9
10
|
tags?: string[];
|
|
10
11
|
links?: Link[];
|
|
11
12
|
namespace?: string;
|
|
@@ -58,6 +59,7 @@ export declare class testit {
|
|
|
58
59
|
static title(value: string): Promise<void>;
|
|
59
60
|
static description(value: string): Promise<void>;
|
|
60
61
|
static labels(value: string[]): Promise<void>;
|
|
62
|
+
static layer(value: string): Promise<void>;
|
|
61
63
|
static tags(value: string[]): Promise<void>;
|
|
62
64
|
static links(value: Link[]): Promise<void>;
|
|
63
65
|
static namespace(value: string): Promise<void>;
|
package/dist/labels.js
CHANGED
|
@@ -136,6 +136,11 @@ class testit {
|
|
|
136
136
|
labels: value.map((label) => ({ name: label })),
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
|
+
static async layer(value) {
|
|
140
|
+
await this.addMetadataAttachment({
|
|
141
|
+
layer: value,
|
|
142
|
+
});
|
|
143
|
+
}
|
|
139
144
|
static async tags(value) {
|
|
140
145
|
await this.addMetadataAttachment({
|
|
141
146
|
tags: value,
|
package/dist/metadata-store.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testit-adapter-playwright",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.6",
|
|
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": "5.0.
|
|
43
|
+
"testit-js-commons": "5.0.6"
|
|
44
44
|
},
|
|
45
45
|
"files": [
|
|
46
46
|
"dist"
|