@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 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.execute(annotation);
471
+ return multiRemoteBrowser.executeScript(annotation, []);
472
472
  }));
473
473
  }
474
- return this._browser.execute(annotation);
474
+ return this._browser.executeScript(annotation, []);
475
475
  }
476
476
  async _setJobName(suiteTitle) {
477
477
  if (!suiteTitle) {
@@ -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<unknown>;
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<unknown>;
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<unknown> | undefined;
43
- beforeStep(step: Frameworks.PickleStep): Promise<unknown>;
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<unknown>;
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<unknown>;
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.2",
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.0",
36
- "@wdio/types": "9.1.2",
37
- "@wdio/utils": "9.1.2",
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.2"
40
+ "webdriverio": "9.1.4"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/ip": "^1.1.0",
44
- "@wdio/globals": "9.1.2"
44
+ "@wdio/globals": "9.1.4"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "e009b5102f9f98b99fa62df870ce7f3f5bc1b99a"
49
+ "gitHead": "39fb68e6fa78c99c0def775c2b976f36e0be3af0"
50
50
  }