@wdio/sauce-service 9.1.2 → 9.1.4
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 +2 -2
- package/build/service.d.ts +6 -6
- package/package.json +7 -7
package/build/index.js
CHANGED
|
@@ -468,10 +468,10 @@ var SauceService = class {
|
|
|
468
468
|
if (this._browser.isMultiremote) {
|
|
469
469
|
return Promise.all(Object.keys(this._capabilities).map(async (browserName) => {
|
|
470
470
|
const multiRemoteBrowser = this._browser.getInstance(browserName);
|
|
471
|
-
return multiRemoteBrowser.
|
|
471
|
+
return multiRemoteBrowser.executeScript(annotation, []);
|
|
472
472
|
}));
|
|
473
473
|
}
|
|
474
|
-
return this._browser.
|
|
474
|
+
return this._browser.executeScript(annotation, []);
|
|
475
475
|
}
|
|
476
476
|
async _setJobName(suiteTitle) {
|
|
477
477
|
if (!suiteTitle) {
|
package/build/service.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export default class SauceService implements Services.ServiceInstance {
|
|
|
24
24
|
beforeSession(_: Options.Testrunner, __: never, ___: never, cid: string): void;
|
|
25
25
|
before(_: unknown, __: string[], browser: WebdriverIO.Browser | WebdriverIO.MultiRemoteBrowser): void;
|
|
26
26
|
beforeSuite(suite: Frameworks.Suite): Promise<void>;
|
|
27
|
-
beforeTest(test: Frameworks.Test): Promise<
|
|
27
|
+
beforeTest(test: Frameworks.Test): Promise<any>;
|
|
28
28
|
afterSuite(suite: Frameworks.Suite): void;
|
|
29
29
|
private _reportErrorLog;
|
|
30
30
|
afterTest(test: Frameworks.Test, context: unknown, results: Frameworks.TestResult): void;
|
|
@@ -34,13 +34,13 @@ export default class SauceService implements Services.ServiceInstance {
|
|
|
34
34
|
*/
|
|
35
35
|
beforeFeature(uri: unknown, feature: {
|
|
36
36
|
name: string;
|
|
37
|
-
}): Promise<
|
|
37
|
+
}): Promise<any>;
|
|
38
38
|
/**
|
|
39
39
|
* Runs before a Cucumber Scenario.
|
|
40
40
|
* @param world world object containing information on pickle and test step
|
|
41
41
|
*/
|
|
42
|
-
beforeScenario(world: Frameworks.World): Promise<
|
|
43
|
-
beforeStep(step: Frameworks.PickleStep): Promise<
|
|
42
|
+
beforeScenario(world: Frameworks.World): Promise<any> | undefined;
|
|
43
|
+
beforeStep(step: Frameworks.PickleStep): Promise<any>;
|
|
44
44
|
/**
|
|
45
45
|
* Runs after a Cucumber Scenario.
|
|
46
46
|
* @param world world object containing information on pickle and test step
|
|
@@ -53,7 +53,7 @@ export default class SauceService implements Services.ServiceInstance {
|
|
|
53
53
|
/**
|
|
54
54
|
* update Sauce Labs job
|
|
55
55
|
*/
|
|
56
|
-
after(result: number): Promise<
|
|
56
|
+
after(result: number): Promise<any>;
|
|
57
57
|
/**
|
|
58
58
|
* upload files to Sauce Labs platform
|
|
59
59
|
* @param jobId id of the job
|
|
@@ -69,7 +69,7 @@ export default class SauceService implements Services.ServiceInstance {
|
|
|
69
69
|
/**
|
|
70
70
|
* Update the running Sauce Labs Job with an annotation
|
|
71
71
|
*/
|
|
72
|
-
setAnnotation(annotation: string): Promise<
|
|
72
|
+
setAnnotation(annotation: string): Promise<any>;
|
|
73
73
|
private _setJobName;
|
|
74
74
|
private _getStatusForTestRun;
|
|
75
75
|
private _getOsName;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/sauce-service",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.4",
|
|
4
4
|
"description": "WebdriverIO service that provides a better integration into Sauce Labs",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-sauce-service",
|
|
@@ -32,19 +32,19 @@
|
|
|
32
32
|
},
|
|
33
33
|
"typeScriptVersion": "3.8.3",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@wdio/logger": "9.1.
|
|
36
|
-
"@wdio/types": "9.1.
|
|
37
|
-
"@wdio/utils": "9.1.
|
|
35
|
+
"@wdio/logger": "9.1.3",
|
|
36
|
+
"@wdio/types": "9.1.3",
|
|
37
|
+
"@wdio/utils": "9.1.3",
|
|
38
38
|
"ip": "^2.0.1",
|
|
39
39
|
"saucelabs": "8.0.0",
|
|
40
|
-
"webdriverio": "9.1.
|
|
40
|
+
"webdriverio": "9.1.4"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/ip": "^1.1.0",
|
|
44
|
-
"@wdio/globals": "9.1.
|
|
44
|
+
"@wdio/globals": "9.1.4"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "39fb68e6fa78c99c0def775c2b976f36e0be3af0"
|
|
50
50
|
}
|