@wdio/cli 7.16.15 → 7.17.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/build/constants.d.ts +5 -5
- package/build/constants.js +2 -2
- package/build/index.js +5 -1
- package/build/templates/exampleFiles/pageobjects/login.page.js.ejs +5 -5
- package/build/templates/exampleFiles/pageobjects/page.js.ejs +1 -1
- package/build/templates/exampleFiles/pageobjects/secure.page.js.ejs +1 -1
- package/package.json +7 -7
package/build/constants.d.ts
CHANGED
|
@@ -145,8 +145,8 @@ export declare const SUPPORTED_PACKAGES: {
|
|
|
145
145
|
readonly name: "docker";
|
|
146
146
|
readonly value: "wdio-docker-service$--$docker";
|
|
147
147
|
}, {
|
|
148
|
-
readonly name: "
|
|
149
|
-
readonly value: "wdio-ui5-service$--$
|
|
148
|
+
readonly name: "ui5";
|
|
149
|
+
readonly value: "wdio-ui5-service$--$ui5";
|
|
150
150
|
}, {
|
|
151
151
|
readonly name: "wiremock";
|
|
152
152
|
readonly value: "wdio-wiremock-service$--$wiremock";
|
|
@@ -422,8 +422,8 @@ export declare const QUESTIONNAIRE: ({
|
|
|
422
422
|
readonly name: "docker";
|
|
423
423
|
readonly value: "wdio-docker-service$--$docker";
|
|
424
424
|
}, {
|
|
425
|
-
readonly name: "
|
|
426
|
-
readonly value: "wdio-ui5-service$--$
|
|
425
|
+
readonly name: "ui5";
|
|
426
|
+
readonly value: "wdio-ui5-service$--$ui5";
|
|
427
427
|
}, {
|
|
428
428
|
readonly name: "wiremock";
|
|
429
429
|
readonly value: "wdio-wiremock-service$--$wiremock";
|
|
@@ -470,7 +470,7 @@ export declare const QUESTIONNAIRE: ({
|
|
|
470
470
|
readonly name: "ms-teams";
|
|
471
471
|
readonly value: "wdio-ms-teams-service$--$ms-teams";
|
|
472
472
|
}];
|
|
473
|
-
default: ("wdio-chromedriver-service$--$chromedriver" | "@wdio/sauce-service$--$sauce" | "@wdio/testingbot-service$--$testingbot" | "@wdio/selenium-standalone-service$--$selenium-standalone" | "@wdio/devtools-service$--$devtools" | "@wdio/browserstack-service$--$browserstack" | "@wdio/appium-service$--$appium" | "@wdio/firefox-profile-service$--$firefox-profile" | "@wdio/crossbrowsertesting-service$--$crossbrowsertesting" | "wdio-eslinter-service$--$eslinter" | "wdio-lambdatest-service$--$lambdatest" | "wdio-zafira-listener-service$--$zafira-listener" | "wdio-reportportal-service$--$reportportal" | "wdio-docker-service$--$docker" | "wdio-ui5-service$--$
|
|
473
|
+
default: ("wdio-chromedriver-service$--$chromedriver" | "@wdio/sauce-service$--$sauce" | "@wdio/testingbot-service$--$testingbot" | "@wdio/selenium-standalone-service$--$selenium-standalone" | "@wdio/devtools-service$--$devtools" | "@wdio/browserstack-service$--$browserstack" | "@wdio/appium-service$--$appium" | "@wdio/firefox-profile-service$--$firefox-profile" | "@wdio/crossbrowsertesting-service$--$crossbrowsertesting" | "wdio-eslinter-service$--$eslinter" | "wdio-lambdatest-service$--$lambdatest" | "wdio-zafira-listener-service$--$zafira-listener" | "wdio-reportportal-service$--$reportportal" | "wdio-docker-service$--$docker" | "wdio-ui5-service$--$ui5" | "wdio-wiremock-service$--$wiremock" | "wdio-ng-apimock-service$--ng-apimock" | "wdio-slack-service$--$slack" | "wdio-intercept-service$--$intercept" | "wdio-image-comparison-service$--$image-comparison" | "wdio-novus-visual-regression-service$--$novus-visual-regression" | "wdio-rerun-service$--$rerun" | "wdio-winappdriver-service$--$winappdriver" | "wdio-ywinappdriver-service$--$ywinappdriver" | "wdio-performancetotal-service$--$performancetotal" | "wdio-cleanuptotal-service$--$cleanuptotal" | "wdio-aws-device-farm-service$--$aws-device-farm" | "wdio-ocr-service$--$ocr-native-apps" | "wdio-ms-teams-service$--$ms-teams")[];
|
|
474
474
|
validate: (answers: string[]) => string | Boolean;
|
|
475
475
|
when?: undefined;
|
|
476
476
|
} | {
|
package/build/constants.js
CHANGED
|
@@ -109,7 +109,7 @@ exports.SUPPORTED_PACKAGES = {
|
|
|
109
109
|
{ name: 'zafira-listener', value: 'wdio-zafira-listener-service$--$zafira-listener' },
|
|
110
110
|
{ name: 'reportportal', value: 'wdio-reportportal-service$--$reportportal' },
|
|
111
111
|
{ name: 'docker', value: 'wdio-docker-service$--$docker' },
|
|
112
|
-
{ name: '
|
|
112
|
+
{ name: 'ui5', value: 'wdio-ui5-service$--$ui5' },
|
|
113
113
|
{ name: 'wiremock', value: 'wdio-wiremock-service$--$wiremock' },
|
|
114
114
|
{ name: 'ng-apimock', value: 'wdio-ng-apimock-service$--ng-apimock' },
|
|
115
115
|
{ name: 'slack', value: 'wdio-slack-service$--$slack' },
|
|
@@ -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: '
|
|
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.
|
|
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()
|
|
14
|
+
<%- isUsingTypeScript ? "public " : "" %>get inputUsername () {
|
|
15
15
|
return $('#username');
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
<%- isUsingTypeScript ? "public " : "" %>get inputPassword()
|
|
18
|
+
<%- isUsingTypeScript ? "public " : "" %>get inputPassword () {
|
|
19
19
|
return $('#password');
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
<%- isUsingTypeScript ? "public " : "" %>get btnSubmit()
|
|
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": "" %>)
|
|
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()
|
|
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" : "" %>)
|
|
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()
|
|
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.
|
|
3
|
+
"version": "7.17.3",
|
|
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.
|
|
41
|
-
"@wdio/logger": "7.
|
|
42
|
-
"@wdio/types": "7.
|
|
43
|
-
"@wdio/utils": "7.
|
|
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.
|
|
56
|
+
"webdriverio": "7.17.3",
|
|
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": "
|
|
64
|
+
"gitHead": "2bcb589dbdd10ca181f301a269b4dd158faab257"
|
|
65
65
|
}
|