@wdio/sauce-service 9.1.1 → 9.1.3

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 CHANGED
@@ -28,9 +28,9 @@ Instructions on how to install `WebdriverIO` can be found [here.](https://webdri
28
28
 
29
29
  ## Configuration
30
30
 
31
- To use the service for the Virtual Desktop/Emulator/Simulator Machine and Real Device cloud you need to set `user` and `key` in your `wdio.conf.js` file. It will automatically use Sauce Labs to run your integration tests. If you run your tests on Sauce Labs you can specify the region you want to run your tests in via the `region` property. Available short handles for regions are `us` (default), `eu` and `apac`. These regions are used for the Sauce Labs VM cloud and the Sauce Labs Real Device Cloud. If you don't provide the region, it defaults to `us`.
31
+ To use the service for the Virtual Desktop/Emulator/Simulator Machine and Real Device cloud you need to set `user` and `key` in your `wdio.conf.js` file. It will automatically use Sauce Labs to run your integration tests. If you run your tests on Sauce Labs you can specify the region you want to run your tests in via the `region` property. Available short handles for regions are `us` (default) and `eu`. These regions are used for the Sauce Labs VM cloud and the Sauce Labs Real Device Cloud. If you don't provide the region, it defaults to `us`.
32
32
 
33
- If you want WebdriverIO to automatically spin up a [Sauce Connect](https://wiki.saucelabs.com/display/DOCS/Sauce+Connect+Proxy) tunnel, you need to set `sauceConnect: true`. If you would like to change the data center to EU add `region:'eu'` or APAC add `region:'apac'` as US data center is set as default.
33
+ If you want WebdriverIO to automatically spin up a [Sauce Connect](https://wiki.saucelabs.com/display/DOCS/Sauce+Connect+Proxy) tunnel, you need to set `sauceConnect: true`. If you would like to change the data center to EU add `region:'eu'` as US data center is set as default.
34
34
 
35
35
  ```js
36
36
  // wdio.conf.js
@@ -38,7 +38,7 @@ export const config = {
38
38
  // ...
39
39
  user: process.env.SAUCE_USERNAME,
40
40
  key: process.env.SAUCE_ACCESS_KEY,
41
- region: 'us', // or 'eu' or 'apac'
41
+ region: 'us', // or 'eu'
42
42
  services: [
43
43
  ['sauce', {
44
44
  sauceConnect: true,
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.1",
3
+ "version": "9.1.3",
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.0",
37
- "@wdio/utils": "9.1.0",
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.1"
40
+ "webdriverio": "9.1.3"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/ip": "^1.1.0",
44
- "@wdio/globals": "9.1.1"
44
+ "@wdio/globals": "9.1.3"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "f70367e464d7c056328cd7d8e57ea296c0e766ae"
49
+ "gitHead": "db677c6008e388301aba23f655679f4c5b6ea023"
50
50
  }