@wdio/testingbot-service 9.5.0 → 9.5.2
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/build/index.js +18 -3
- package/build/service.d.ts +7 -3
- package/build/service.d.ts.map +1 -1
- package/package.json +4 -4
package/build/index.js
CHANGED
|
@@ -102,7 +102,22 @@ var TestingBotService = class {
|
|
|
102
102
|
*/
|
|
103
103
|
`${test.parent} - ${test.title}`
|
|
104
104
|
);
|
|
105
|
-
this.
|
|
105
|
+
return this.setAnnotation(`tb:test-context=${context}`);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Update the running test on TestingBot with an annotation
|
|
109
|
+
*/
|
|
110
|
+
async setAnnotation(annotation) {
|
|
111
|
+
if (!this._browser) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
if (this._browser.isMultiremote) {
|
|
115
|
+
return Promise.all(Object.keys(this._capabilities).map(async (browserName) => {
|
|
116
|
+
const multiRemoteBrowser = this._browser.getInstance(browserName);
|
|
117
|
+
return multiRemoteBrowser.executeScript(annotation, []);
|
|
118
|
+
}));
|
|
119
|
+
}
|
|
120
|
+
return this._browser.executeScript(annotation, []);
|
|
106
121
|
}
|
|
107
122
|
afterSuite(suite) {
|
|
108
123
|
if (Object.prototype.hasOwnProperty.call(suite, "error")) {
|
|
@@ -131,7 +146,7 @@ var TestingBotService = class {
|
|
|
131
146
|
return;
|
|
132
147
|
}
|
|
133
148
|
this._suiteTitle = feature.name;
|
|
134
|
-
this.
|
|
149
|
+
return this.setAnnotation(`tb:test-context=Feature: ${this._suiteTitle}`);
|
|
135
150
|
}
|
|
136
151
|
/**
|
|
137
152
|
* Before scenario
|
|
@@ -144,7 +159,7 @@ var TestingBotService = class {
|
|
|
144
159
|
return;
|
|
145
160
|
}
|
|
146
161
|
const scenarioName = world.pickle.name;
|
|
147
|
-
this.
|
|
162
|
+
return this.setAnnotation(`tb:test-context=Scenario: ${scenarioName}`);
|
|
148
163
|
}
|
|
149
164
|
/**
|
|
150
165
|
*
|
package/build/service.d.ts
CHANGED
|
@@ -22,7 +22,11 @@ export default class TestingBotService implements Services.ServiceInstance {
|
|
|
22
22
|
* Before test
|
|
23
23
|
* @param {object} test Test
|
|
24
24
|
*/
|
|
25
|
-
beforeTest(test: Frameworks.Test):
|
|
25
|
+
beforeTest(test: Frameworks.Test): Promise<any> | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Update the running test on TestingBot with an annotation
|
|
28
|
+
*/
|
|
29
|
+
setAnnotation(annotation: string): Promise<any>;
|
|
26
30
|
afterSuite(suite: Frameworks.Suite): void;
|
|
27
31
|
/**
|
|
28
32
|
* After test
|
|
@@ -39,14 +43,14 @@ export default class TestingBotService implements Services.ServiceInstance {
|
|
|
39
43
|
*/
|
|
40
44
|
beforeFeature(uri: unknown, feature: {
|
|
41
45
|
name: string;
|
|
42
|
-
}):
|
|
46
|
+
}): Promise<any> | undefined;
|
|
43
47
|
/**
|
|
44
48
|
* Before scenario
|
|
45
49
|
* @param {string} uri
|
|
46
50
|
* @param {object} feature
|
|
47
51
|
* @param {object} scenario
|
|
48
52
|
*/
|
|
49
|
-
beforeScenario(world: Frameworks.World):
|
|
53
|
+
beforeScenario(world: Frameworks.World): Promise<any> | undefined;
|
|
50
54
|
/**
|
|
51
55
|
*
|
|
52
56
|
* Runs before a Cucumber Scenario.
|
package/build/service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAKnD,MAAM,CAAC,OAAO,OAAO,iBAAkB,YAAW,QAAQ,CAAC,eAAe;IAUlE,OAAO,CAAC,QAAQ;IAChB,OAAO,CA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,WAAW,CAAC,EAAE,MAAM;cACxC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;;CAkCpE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/testingbot-service",
|
|
3
|
-
"version": "9.5.
|
|
3
|
+
"version": "9.5.2",
|
|
4
4
|
"description": "A WebdriverIO service that provides a better integration into TestingBot",
|
|
5
5
|
"author": "Jochen Delabie <info@testingbot.com>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-testingbot-service",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"@wdio/logger": "9.4.4",
|
|
36
36
|
"@wdio/types": "9.5.0",
|
|
37
37
|
"testingbot-tunnel-launcher": "^1.1.7",
|
|
38
|
-
"webdriverio": "9.5.
|
|
38
|
+
"webdriverio": "9.5.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^20.1.0",
|
|
42
|
-
"@wdio/globals": "9.5.
|
|
42
|
+
"@wdio/globals": "9.5.2"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "5dac7f9da53631945d6b8c7cc10a5550623dd6eb"
|
|
48
48
|
}
|