@wdio/cli 7.16.16 → 7.17.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.
@@ -217,7 +217,7 @@ exports.QUESTIONNAIRE = [{
217
217
  type: 'input',
218
218
  name: 'env_key',
219
219
  message: 'Environment variable for access key',
220
- default: 'BROWSERSTACK_ACCESSKEY',
220
+ default: 'BROWSERSTACK_ACCESS_KEY',
221
221
  when: /* istanbul ignore next */ (answers) => answers.backend.toString().startsWith('In the cloud using Browserstack')
222
222
  }, {
223
223
  type: 'input',
package/build/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -11,15 +11,15 @@ class LoginPage extends Page {
11
11
  /**
12
12
  * define selectors using getter methods
13
13
  */
14
- <%- isUsingTypeScript ? "public " : "" %>get inputUsername()<%- isUsingTypeScript ? ": ChainablePromiseElement<Promise<WebdriverIO.Element>>" : "" %> {
14
+ <%- isUsingTypeScript ? "public " : "" %>get inputUsername () {
15
15
  return $('#username');
16
16
  }
17
17
 
18
- <%- isUsingTypeScript ? "public " : "" %>get inputPassword()<%- isUsingTypeScript ? ": ChainablePromiseElement<Promise<WebdriverIO.Element>>" : "" %> {
18
+ <%- isUsingTypeScript ? "public " : "" %>get inputPassword () {
19
19
  return $('#password');
20
20
  }
21
21
 
22
- <%- isUsingTypeScript ? "public " : "" %>get btnSubmit()<%- isUsingTypeScript ? ": ChainablePromiseElement<Promise<WebdriverIO.Element>>" : "" %> {
22
+ <%- isUsingTypeScript ? "public " : "" %>get btnSubmit () {
23
23
  return $('button[type="submit"]');
24
24
  }
25
25
 
@@ -27,7 +27,7 @@ class LoginPage extends Page {
27
27
  * a method to encapsule automation code to interact with the page
28
28
  * e.g. to login using username and password
29
29
  */
30
- <%- isUsingTypeScript ? "public " : "" %>async login (username<%- isUsingTypeScript ? ": string": "" %>, password<%- isUsingTypeScript ? ": string": "" %>)<%- isUsingTypeScript ? ": Promise<void>" : "" %> {
30
+ <%- isUsingTypeScript ? "public " : "" %>async login (username<%- isUsingTypeScript ? ": string": "" %>, password<%- isUsingTypeScript ? ": string": "" %>) {
31
31
  await this.inputUsername.setValue(username);
32
32
  await this.inputPassword.setValue(password);
33
33
  await this.btnSubmit.click();
@@ -36,7 +36,7 @@ class LoginPage extends Page {
36
36
  /**
37
37
  * overwrite specific options to adapt it to page object
38
38
  */
39
- <%- isUsingTypeScript ? "public " : "" %>open()<%- isUsingTypeScript ? ": Promise<string>" : "" %> {
39
+ <%- isUsingTypeScript ? "public " : "" %>open () {
40
40
  return super.open('login');
41
41
  }
42
42
  }
@@ -7,7 +7,7 @@
7
7
  * Opens a sub page of the page
8
8
  * @param path path of the sub page (e.g. /path/to/page.html)
9
9
  */
10
- <%- isUsingTypeScript ? "public " : "" %>open(path<%- isUsingTypeScript ? ": string" : "" %>)<%- isUsingTypeScript ? ": Promise<string>" : "" %> {
10
+ <%- isUsingTypeScript ? "public " : "" %>open (path<%- isUsingTypeScript ? ": string" : "" %>) {
11
11
  return browser.url(`https://the-internet.herokuapp.com/${path}`)
12
12
  }
13
13
  }
@@ -11,7 +11,7 @@ class SecurePage extends Page {
11
11
  /**
12
12
  * define selectors using getter methods
13
13
  */
14
- <%- isUsingTypeScript ? "public " : "" %>get flashAlert()<%- isUsingTypeScript ? ": ChainablePromiseElement<Promise<WebdriverIO.Element>>" : "" %> {
14
+ <%- isUsingTypeScript ? "public " : "" %>get flashAlert () {
15
15
  return $('#flash');
16
16
  }
17
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/cli",
3
- "version": "7.16.16",
3
+ "version": "7.17.4",
4
4
  "description": "WebdriverIO testrunner command line interface",
5
5
  "author": "Christian Bromann <christian@saucelabs.com>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-cli",
@@ -37,10 +37,10 @@
37
37
  "@types/lodash.union": "^4.6.6",
38
38
  "@types/node": "^17.0.4",
39
39
  "@types/recursive-readdir": "^2.2.0",
40
- "@wdio/config": "7.16.16",
41
- "@wdio/logger": "7.16.0",
42
- "@wdio/types": "7.16.14",
43
- "@wdio/utils": "7.16.14",
40
+ "@wdio/config": "7.17.3",
41
+ "@wdio/logger": "7.17.3",
42
+ "@wdio/types": "7.17.3",
43
+ "@wdio/utils": "7.17.3",
44
44
  "async-exit-hook": "^2.0.1",
45
45
  "chalk": "^4.0.0",
46
46
  "chokidar": "^3.0.0",
@@ -53,7 +53,7 @@
53
53
  "lodash.union": "^4.6.0",
54
54
  "mkdirp": "^1.0.4",
55
55
  "recursive-readdir": "^2.2.2",
56
- "webdriverio": "7.16.16",
56
+ "webdriverio": "7.17.4",
57
57
  "yargs": "^17.0.0",
58
58
  "yarn-install": "^1.0.0"
59
59
  },
@@ -61,5 +61,5 @@
61
61
  "access": "public"
62
62
  },
63
63
  "types": "./build/index.d.ts",
64
- "gitHead": "10597a2afe43b2f64ed9bf0ddae3f3f77d280047"
64
+ "gitHead": "7243b24766d60a8b4c7d92aec757238c96590172"
65
65
  }