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 +0 -3
- package/dist/browser/runtime.d.ts +0 -1
- package/dist/browser/runtime.js +0 -8
- package/dist/browser/types.d.ts +0 -1
- package/dist/browser/types.js +0 -1
- package/dist/converter.d.ts +0 -1
- package/dist/converter.js +0 -1
- package/dist/models/types.d.ts +0 -1
- package/dist/reporter.js +0 -3
- package/package.json +2 -2
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>;
|
package/dist/browser/runtime.js
CHANGED
|
@@ -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",
|
package/dist/browser/types.d.ts
CHANGED
|
@@ -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>;
|
package/dist/browser/types.js
CHANGED
package/dist/converter.d.ts
CHANGED
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,
|
package/dist/models/types.d.ts
CHANGED
package/dist/reporter.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testit-adapter-cypress",
|
|
3
|
-
"version": "5.0.
|
|
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.
|
|
45
|
+
"testit-js-commons": "5.0.8-TMS-5.8"
|
|
46
46
|
},
|
|
47
47
|
"files": [
|
|
48
48
|
"dist"
|