@wdio/cli 8.0.8 → 8.0.10
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 +7 -1
- package/build/constants.d.ts.map +1 -1
- package/build/constants.js +2 -1
- package/build/utils.d.ts.map +1 -1
- package/build/utils.js +41 -30
- package/package.json +7 -7
package/build/constants.d.ts
CHANGED
|
@@ -228,6 +228,9 @@ export declare const SUPPORTED_PACKAGES: {
|
|
|
228
228
|
}, {
|
|
229
229
|
readonly name: "qmate-service";
|
|
230
230
|
readonly value: "@sap_oss/wdio-qmate-service$--$qmate-service";
|
|
231
|
+
}, {
|
|
232
|
+
readonly name: "vitaqai";
|
|
233
|
+
readonly value: "wdio-vitaqai-service$--$vitaqai";
|
|
231
234
|
}];
|
|
232
235
|
};
|
|
233
236
|
export declare const COMMUNITY_PACKAGES_WITH_V8_SUPPORT: string[];
|
|
@@ -576,8 +579,11 @@ export declare const QUESTIONNAIRE: ({
|
|
|
576
579
|
}, {
|
|
577
580
|
readonly name: "qmate-service";
|
|
578
581
|
readonly value: "@sap_oss/wdio-qmate-service$--$qmate-service";
|
|
582
|
+
}, {
|
|
583
|
+
readonly name: "vitaqai";
|
|
584
|
+
readonly value: "wdio-vitaqai-service$--$vitaqai";
|
|
579
585
|
}];
|
|
580
|
-
default: ("wdio-chromedriver-service$--$chromedriver" | "wdio-geckodriver-service$--$geckodriver" | "wdio-edgedriver-service$--$edgedriver" | "wdio-safaridriver-service$--$safaridriver" | "@wdio/selenium-standalone-service$--$selenium-standalone" | "@wdio/appium-service$--$appium" | "wdio-vscode-service$--$vscode" | "wdio-electron-service$--$electron" | "@wdio/devtools-service$--$devtools" | "@wdio/sauce-service$--$sauce" | "@wdio/testingbot-service$--$testingbot" | "@wdio/crossbrowsertesting-service$--$crossbrowsertesting" | "@wdio/browserstack-service$--$browserstack" | "@wdio/firefox-profile-service$--$firefox-profile" | "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-cucumber-viewport-logger-service$--$cucumber-viewport-logger" | "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" | "wdio-tesults-service$--$tesults" | "@gmangiapelo/wdio-azure-devops-service$--$azure-devops" | "wdio-google-chat-service$--$google-chat" | "@sap_oss/wdio-qmate-service$--$qmate-service")[];
|
|
586
|
+
default: ("wdio-chromedriver-service$--$chromedriver" | "wdio-geckodriver-service$--$geckodriver" | "wdio-edgedriver-service$--$edgedriver" | "wdio-safaridriver-service$--$safaridriver" | "@wdio/selenium-standalone-service$--$selenium-standalone" | "@wdio/appium-service$--$appium" | "wdio-vscode-service$--$vscode" | "wdio-electron-service$--$electron" | "@wdio/devtools-service$--$devtools" | "@wdio/sauce-service$--$sauce" | "@wdio/testingbot-service$--$testingbot" | "@wdio/crossbrowsertesting-service$--$crossbrowsertesting" | "@wdio/browserstack-service$--$browserstack" | "@wdio/firefox-profile-service$--$firefox-profile" | "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-cucumber-viewport-logger-service$--$cucumber-viewport-logger" | "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" | "wdio-tesults-service$--$tesults" | "@gmangiapelo/wdio-azure-devops-service$--$azure-devops" | "wdio-google-chat-service$--$google-chat" | "@sap_oss/wdio-qmate-service$--$qmate-service" | "wdio-vitaqai-service$--$vitaqai")[];
|
|
581
587
|
validate: (answers: string[]) => string | Boolean;
|
|
582
588
|
when?: undefined;
|
|
583
589
|
})[];
|
package/build/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,eAAO,MAAM,GAAG,KAA6B,CAAA;AAE7C,eAAO,MAAM,YAAY,QAAqE,CAAA;AAE9F,eAAO,MAAM,kBAAkB;;;;;CAK9B,CAAA;AAED,eAAO,MAAM,mBAAmB,8HAI/B,CAAA;AAED,eAAO,MAAM,6BAA6B,4cAYzC,CAAA;AAED,eAAO,MAAM,iCAAiC,8CAG7C,CAAA;AAED,eAAO,MAAM,WAAW,KAAK,CAAA;AAE7B,eAAO,MAAM,cAAc;;;;CAI1B,CAAA;AAED,eAAO,MAAM,UAAU;;;;CAItB,CAAA;AAED,eAAO,MAAM,uBAAuB,iGAI1B,CAAA;AAEV,eAAO,MAAM,gBAAgB;;;;CAInB,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,kBAAkB
|
|
1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;;;;;oBAoBqB,YAAY;;;;;;;uBAWR,YAAY;;;;;;;;oBAchB,YAAY;;;;;;;;;oBAMZ,YAAY;;;;;;;;;oBAyBZ,YAAY;;;;;;;oBAkDZ,YAAY;;;;;;;uBAuBR,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAcb,YAAY;;;;;;;;;;;;;;;uBAUZ,YAAY;oBACf,YAAY;;;;;;;;oBAkBZ,YAAY;;;;;;;uBAWT,YAAY;oBAKf,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA2BR,MAAM,EAAE;;IA+BzD,CAAA"}
|
package/build/constants.js
CHANGED
|
@@ -134,7 +134,8 @@ export const SUPPORTED_PACKAGES = {
|
|
|
134
134
|
{ name: 'tesults', value: 'wdio-tesults-service$--$tesults' },
|
|
135
135
|
{ name: 'azure-devops', value: '@gmangiapelo/wdio-azure-devops-service$--$azure-devops' },
|
|
136
136
|
{ name: 'google-Chat', value: 'wdio-google-chat-service$--$google-chat' },
|
|
137
|
-
{ name: 'qmate-service', value: '@sap_oss/wdio-qmate-service$--$qmate-service' }
|
|
137
|
+
{ name: 'qmate-service', value: '@sap_oss/wdio-qmate-service$--$qmate-service' },
|
|
138
|
+
{ name: 'vitaqai', value: 'wdio-vitaqai-service$--$vitaqai' }
|
|
138
139
|
]
|
|
139
140
|
};
|
|
140
141
|
export const COMMUNITY_PACKAGES_WITH_V8_SUPPORT = [
|
package/build/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAIA,OAAO,EAAmB,Y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AE,MAAM,QA6CzF;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAE,aAAa,EAAE,aAAa,iBAuClE;AAED;;GAEG;AACH,wBAAsB,UAAU,CAAE,aAAa,EAAE,aAAa,iBA4C7D;AAED,wBAAsB,gBAAgB,CAAE,aAAa,EAAE,aAAa,iBAgBnE;AAED,wBAAsB,gBAAgB,CAAE,aAAa,EAAE,aAAa,iBAWnE"}
|
package/build/utils.js
CHANGED
|
@@ -44,7 +44,7 @@ export async function runServiceHook(launcher, hookName, ...args) {
|
|
|
44
44
|
}
|
|
45
45
|
catch (err) {
|
|
46
46
|
const message = `A service failed in the '${hookName}' hook\n${err.stack}\n\n`;
|
|
47
|
-
if (err instanceof SevereServiceError) {
|
|
47
|
+
if (err instanceof SevereServiceError || err.name === 'SevereServiceError') {
|
|
48
48
|
return { status: 'rejected', reason: message, origin: hookName };
|
|
49
49
|
}
|
|
50
50
|
log.error(`${message}Continue...`);
|
|
@@ -380,36 +380,47 @@ export async function getAnswers(yes) {
|
|
|
380
380
|
}
|
|
381
381
|
const projectProps = await getProjectProps(process.cwd());
|
|
382
382
|
const isProjectExisting = Boolean(projectProps);
|
|
383
|
-
const projectName = projectProps?.packageJson
|
|
383
|
+
const projectName = projectProps?.packageJson?.name ? ` named "${projectProps.packageJson.name}"` : '';
|
|
384
384
|
const questions = [
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
385
|
+
/**
|
|
386
|
+
* in case the `wdio config` was called using a global installed @wdio/cli package
|
|
387
|
+
*/
|
|
388
|
+
...(!isProjectExisting
|
|
389
|
+
? [{
|
|
390
|
+
type: 'confirm',
|
|
391
|
+
name: 'createPackageJSON',
|
|
392
|
+
default: true,
|
|
393
|
+
message: `Couldn't find a package.json in "${process.cwd()}" or any of the parent directories, do you want to create one?`,
|
|
394
|
+
}, {
|
|
395
|
+
type: 'list',
|
|
396
|
+
name: 'moduleSystem',
|
|
397
|
+
message: 'Which module system should be used?',
|
|
398
|
+
choices: [
|
|
399
|
+
{ name: 'esm', value: 'ESM (recommended)$--$esm' },
|
|
400
|
+
{ name: 'commonjs', value: 'CommonJS$--$commonjs' }
|
|
401
|
+
],
|
|
402
|
+
// only ask if there are more than 1 runner to pick from
|
|
403
|
+
when: /* istanbul ignore next */ (answers) => answers.createPackageJSON
|
|
404
|
+
}]
|
|
405
|
+
/**
|
|
406
|
+
* in case create-wdio was used which creates a package.json with name "my-new-project"
|
|
407
|
+
* we don't need to ask this question
|
|
408
|
+
*/
|
|
409
|
+
: projectName !== 'my-new-project'
|
|
410
|
+
? [{
|
|
411
|
+
type: 'confirm',
|
|
412
|
+
name: 'projectRootCorrect',
|
|
413
|
+
default: true,
|
|
414
|
+
message: `A project${projectName} was detected at "${projectProps?.path}", correct?`,
|
|
415
|
+
}, {
|
|
416
|
+
type: 'input',
|
|
417
|
+
name: 'projectRoot',
|
|
418
|
+
message: 'What is the project root for your test project?',
|
|
419
|
+
default: projectProps?.path,
|
|
420
|
+
// only ask if there are more than 1 runner to pick from
|
|
421
|
+
when: /* istanbul ignore next */ (answers) => !answers.projectRootCorrect
|
|
422
|
+
}]
|
|
423
|
+
: []),
|
|
413
424
|
...QUESTIONNAIRE
|
|
414
425
|
];
|
|
415
426
|
return inquirer.prompt(questions);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/cli",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.10",
|
|
4
4
|
"description": "WebdriverIO testrunner command line interface",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-cli",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"@types/lodash.union": "^4.6.7",
|
|
41
41
|
"@types/recursive-readdir": "^2.2.1",
|
|
42
42
|
"@types/yargs": "^17.0.10",
|
|
43
|
-
"@wdio/config": "8.0.
|
|
44
|
-
"@wdio/globals": "8.0.
|
|
43
|
+
"@wdio/config": "8.0.10",
|
|
44
|
+
"@wdio/globals": "8.0.10",
|
|
45
45
|
"@wdio/logger": "8.0.0",
|
|
46
46
|
"@wdio/protocols": "8.0.0",
|
|
47
|
-
"@wdio/types": "8.0.
|
|
48
|
-
"@wdio/utils": "8.0.
|
|
47
|
+
"@wdio/types": "8.0.10",
|
|
48
|
+
"@wdio/utils": "8.0.10",
|
|
49
49
|
"async-exit-hook": "^2.0.1",
|
|
50
50
|
"chalk": "^5.0.1",
|
|
51
51
|
"chokidar": "^3.5.3",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"mkdirp": "^1.0.4",
|
|
60
60
|
"read-pkg-up": "9.1.0",
|
|
61
61
|
"recursive-readdir": "^2.2.2",
|
|
62
|
-
"webdriverio": "8.0.
|
|
62
|
+
"webdriverio": "8.0.10",
|
|
63
63
|
"yargs": "^17.5.1",
|
|
64
64
|
"yarn-install": "^1.0.0"
|
|
65
65
|
},
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/node": "^18.0.0"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "1c350a14144ecc5f1ebc598c385bae6aa80739c3"
|
|
73
73
|
}
|