@wdio/cli 7.29.1 → 7.30.1

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.
@@ -227,7 +227,7 @@ export declare const SUPPORTED_PACKAGES: {
227
227
  readonly value: "wdio-vitaqai-service$--$vitaqai";
228
228
  }];
229
229
  };
230
- export declare const BACKEND_CHOICES: readonly ["On my local machine", "In the cloud using Experitest", "In the cloud using Sauce Labs", "In the cloud using Browserstack or Testingbot or LambdaTest or a different service", "I have my own Selenium cloud"];
230
+ export declare const BACKEND_CHOICES: readonly ["On my local machine", "In the cloud using Experitest", "In the cloud using Sauce Labs", "In the cloud using BrowserStack", "In the cloud using Testingbot or LambdaTest or a different service", "I have my own Selenium cloud"];
231
231
  export declare const PROTOCOL_OPTIONS: readonly ["https", "http"];
232
232
  export declare const REGION_OPTION: readonly ["us", "eu", "apac"];
233
233
  export declare const QUESTIONNAIRE: ({
@@ -245,7 +245,7 @@ export declare const QUESTIONNAIRE: ({
245
245
  type: string;
246
246
  name: string;
247
247
  message: string;
248
- choices: readonly ["On my local machine", "In the cloud using Experitest", "In the cloud using Sauce Labs", "In the cloud using Browserstack or Testingbot or LambdaTest or a different service", "I have my own Selenium cloud"];
248
+ choices: readonly ["On my local machine", "In the cloud using Experitest", "In the cloud using Sauce Labs", "In the cloud using BrowserStack", "In the cloud using Testingbot or LambdaTest or a different service", "I have my own Selenium cloud"];
249
249
  when?: undefined;
250
250
  default?: undefined;
251
251
  validate?: undefined;
@@ -415,7 +415,7 @@ export declare const QUESTIONNAIRE: ({
415
415
  type: string;
416
416
  name: string;
417
417
  message: string;
418
- choices: readonly [{
418
+ choices: (answers: Questionnair) => readonly [{
419
419
  readonly name: "chromedriver";
420
420
  readonly value: "wdio-chromedriver-service$--$chromedriver";
421
421
  }, {
@@ -535,8 +535,128 @@ export declare const QUESTIONNAIRE: ({
535
535
  }, {
536
536
  readonly name: "vitaqai";
537
537
  readonly value: "wdio-vitaqai-service$--$vitaqai";
538
- }];
539
- default: ("wdio-chromedriver-service$--$chromedriver" | "wdio-geckodriver-service$--$geckodriver" | "wdio-edgedriver-service$--$edgedriver" | "@wdio/sauce-service$--$sauce" | "@wdio/testingbot-service$--$testingbot" | "@wdio/selenium-standalone-service$--$selenium-standalone" | "wdio-vscode-service$--$vscode" | "wdio-electron-service$--$electron" | "@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-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" | "@sap_oss/wdio-qmate-service--$qmate-service" | "wdio-vitaqai-service$--$vitaqai")[];
538
+ }] | ({
539
+ readonly name: "chromedriver";
540
+ readonly value: "wdio-chromedriver-service$--$chromedriver";
541
+ } | {
542
+ readonly name: "geckodriver";
543
+ readonly value: "wdio-geckodriver-service$--$geckodriver";
544
+ } | {
545
+ readonly name: "edgedriver";
546
+ readonly value: "wdio-edgedriver-service$--$edgedriver";
547
+ } | {
548
+ readonly name: "sauce";
549
+ readonly value: "@wdio/sauce-service$--$sauce";
550
+ } | {
551
+ readonly name: "testingbot";
552
+ readonly value: "@wdio/testingbot-service$--$testingbot";
553
+ } | {
554
+ readonly name: "selenium-standalone";
555
+ readonly value: "@wdio/selenium-standalone-service$--$selenium-standalone";
556
+ } | {
557
+ readonly name: "vscode";
558
+ readonly value: "wdio-vscode-service$--$vscode";
559
+ } | {
560
+ readonly name: "electron";
561
+ readonly value: "wdio-electron-service$--$electron";
562
+ } | {
563
+ readonly name: "devtools";
564
+ readonly value: "@wdio/devtools-service$--$devtools";
565
+ } | {
566
+ readonly name: "browserstack";
567
+ readonly value: "@wdio/browserstack-service$--$browserstack";
568
+ } | {
569
+ readonly name: "appium";
570
+ readonly value: "@wdio/appium-service$--$appium";
571
+ } | {
572
+ readonly name: "firefox-profile";
573
+ readonly value: "@wdio/firefox-profile-service$--$firefox-profile";
574
+ } | {
575
+ readonly name: "crossbrowsertesting";
576
+ readonly value: "@wdio/crossbrowsertesting-service$--$crossbrowsertesting";
577
+ } | {
578
+ readonly name: "eslinter-service";
579
+ readonly value: "wdio-eslinter-service$--$eslinter";
580
+ } | {
581
+ readonly name: "lambdatest";
582
+ readonly value: "wdio-lambdatest-service$--$lambdatest";
583
+ } | {
584
+ readonly name: "zafira-listener";
585
+ readonly value: "wdio-zafira-listener-service$--$zafira-listener";
586
+ } | {
587
+ readonly name: "reportportal";
588
+ readonly value: "wdio-reportportal-service$--$reportportal";
589
+ } | {
590
+ readonly name: "docker";
591
+ readonly value: "wdio-docker-service$--$docker";
592
+ } | {
593
+ readonly name: "ui5";
594
+ readonly value: "wdio-ui5-service$--$ui5";
595
+ } | {
596
+ readonly name: "wiremock";
597
+ readonly value: "wdio-wiremock-service$--$wiremock";
598
+ } | {
599
+ readonly name: "ng-apimock";
600
+ readonly value: "wdio-ng-apimock-service$--ng-apimock";
601
+ } | {
602
+ readonly name: "slack";
603
+ readonly value: "wdio-slack-service$--$slack";
604
+ } | {
605
+ readonly name: "cucumber-viewport-logger";
606
+ readonly value: "wdio-cucumber-viewport-logger-service$--$cucumber-viewport-logger";
607
+ } | {
608
+ readonly name: "intercept";
609
+ readonly value: "wdio-intercept-service$--$intercept";
610
+ } | {
611
+ readonly name: "docker";
612
+ readonly value: "wdio-docker-service$--$docker";
613
+ } | {
614
+ readonly name: "image-comparison";
615
+ readonly value: "wdio-image-comparison-service$--$image-comparison";
616
+ } | {
617
+ readonly name: "novus-visual-regression";
618
+ readonly value: "wdio-novus-visual-regression-service$--$novus-visual-regression";
619
+ } | {
620
+ readonly name: "rerun";
621
+ readonly value: "wdio-rerun-service$--$rerun";
622
+ } | {
623
+ readonly name: "winappdriver";
624
+ readonly value: "wdio-winappdriver-service$--$winappdriver";
625
+ } | {
626
+ readonly name: "ywinappdriver";
627
+ readonly value: "wdio-ywinappdriver-service$--$ywinappdriver";
628
+ } | {
629
+ readonly name: "performancetotal";
630
+ readonly value: "wdio-performancetotal-service$--$performancetotal";
631
+ } | {
632
+ readonly name: "cleanuptotal";
633
+ readonly value: "wdio-cleanuptotal-service$--$cleanuptotal";
634
+ } | {
635
+ readonly name: "aws-device-farm";
636
+ readonly value: "wdio-aws-device-farm-service$--$aws-device-farm";
637
+ } | {
638
+ readonly name: "ocr-native-apps";
639
+ readonly value: "wdio-ocr-service$--$ocr-native-apps";
640
+ } | {
641
+ readonly name: "ms-teams";
642
+ readonly value: "wdio-ms-teams-service$--$ms-teams";
643
+ } | {
644
+ readonly name: "tesults";
645
+ readonly value: "wdio-tesults-service$--$tesults";
646
+ } | {
647
+ readonly name: "azure-devops";
648
+ readonly value: "@gmangiapelo/wdio-azure-devops-service$--$azure-devops";
649
+ } | {
650
+ readonly name: "google-Chat";
651
+ readonly value: "wdio-google-chat-service";
652
+ } | {
653
+ readonly name: "qmate-service";
654
+ readonly value: "@sap_oss/wdio-qmate-service--$qmate-service";
655
+ } | {
656
+ readonly name: "vitaqai";
657
+ readonly value: "wdio-vitaqai-service$--$vitaqai";
658
+ })[];
659
+ default: (answers: Questionnair) => ("wdio-chromedriver-service$--$chromedriver" | "wdio-geckodriver-service$--$geckodriver" | "wdio-edgedriver-service$--$edgedriver" | "@wdio/sauce-service$--$sauce" | "@wdio/testingbot-service$--$testingbot" | "@wdio/selenium-standalone-service$--$selenium-standalone" | "wdio-vscode-service$--$vscode" | "wdio-electron-service$--$electron" | "@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-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" | "@sap_oss/wdio-qmate-service--$qmate-service" | "wdio-vitaqai-service$--$vitaqai" | undefined)[];
540
660
  validate: (answers: string[]) => string | Boolean;
541
661
  when?: undefined;
542
662
  } | {
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],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;;;;;;;;oBAgBqB,YAAY;;;;;;;;;oBAMZ,YAAY;;;;;;;;;oBAyBZ,YAAY;;;;;;;oBAkDZ,YAAY;;;;;;;;oBAMZ,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAsCpC,YAAY;oBACY,YAAY;;;;;;;uBAWpC,YAAY;oBACY,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA0CpC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAaZ,YAAY;wBAcgB,MAAM,EAAE;;;;;;;;;;IA6BzD,CAAA"}
@@ -142,7 +142,8 @@ exports.BACKEND_CHOICES = [
142
142
  'On my local machine',
143
143
  'In the cloud using Experitest',
144
144
  'In the cloud using Sauce Labs',
145
- 'In the cloud using Browserstack or Testingbot or LambdaTest or a different service',
145
+ 'In the cloud using BrowserStack',
146
+ 'In the cloud using Testingbot or LambdaTest or a different service',
146
147
  'I have my own Selenium cloud'
147
148
  ];
148
149
  exports.PROTOCOL_OPTIONS = [
@@ -182,19 +183,19 @@ exports.QUESTIONNAIRE = [{
182
183
  name: 'expEnvAccessKey',
183
184
  message: 'Access key from Experitest Cloud',
184
185
  default: 'EXPERITEST_ACCESS_KEY',
185
- when: /* istanbul ignore next */ (answers) => answers.backend === 'In the cloud using Experitest'
186
+ when: /* istanbul ignore next */ (answers) => answers.backend === exports.BACKEND_CHOICES[1]
186
187
  }, {
187
188
  type: 'input',
188
189
  name: 'expEnvHostname',
189
190
  message: 'Environment variable for cloud url',
190
191
  default: 'example.experitest.com',
191
- when: /* istanbul ignore next */ (answers) => answers.backend === 'In the cloud using Experitest'
192
+ when: /* istanbul ignore next */ (answers) => answers.backend === exports.BACKEND_CHOICES[1]
192
193
  }, {
193
194
  type: 'input',
194
195
  name: 'expEnvPort',
195
196
  message: 'Environment variable for port',
196
197
  default: '443',
197
- when: /* istanbul ignore next */ (answers) => answers.backend === 'In the cloud using Experitest'
198
+ when: /* istanbul ignore next */ (answers) => answers.backend === exports.BACKEND_CHOICES[1]
198
199
  }, {
199
200
  type: 'list',
200
201
  name: 'expEnvProtocol',
@@ -202,7 +203,7 @@ exports.QUESTIONNAIRE = [{
202
203
  default: 'https',
203
204
  choices: exports.PROTOCOL_OPTIONS,
204
205
  when: /* istanbul ignore next */ (answers) => {
205
- return answers.backend === 'In the cloud using Experitest' && answers.expEnvPort !== '80' && answers.expEnvPort !== '443';
206
+ return answers.backend === exports.BACKEND_CHOICES[1] && answers.expEnvPort !== '80' && answers.expEnvPort !== '443';
206
207
  }
207
208
  }, {
208
209
  type: 'input',
@@ -223,31 +224,31 @@ exports.QUESTIONNAIRE = [{
223
224
  name: 'env_user',
224
225
  message: 'Environment variable for username',
225
226
  default: 'BROWSERSTACK_USERNAME',
226
- when: /* istanbul ignore next */ (answers) => answers.backend.toString().startsWith('In the cloud using Browserstack')
227
+ when: /* istanbul ignore next */ (answers) => answers.backend === exports.BACKEND_CHOICES[3]
227
228
  }, {
228
229
  type: 'input',
229
230
  name: 'env_key',
230
231
  message: 'Environment variable for access key',
231
232
  default: 'BROWSERSTACK_ACCESS_KEY',
232
- when: /* istanbul ignore next */ (answers) => answers.backend.toString().startsWith('In the cloud using Browserstack')
233
+ when: /* istanbul ignore next */ (answers) => answers.backend === exports.BACKEND_CHOICES[3]
233
234
  }, {
234
235
  type: 'input',
235
236
  name: 'env_user',
236
237
  message: 'Environment variable for username',
237
238
  default: 'SAUCE_USERNAME',
238
- when: /* istanbul ignore next */ (answers) => answers.backend === 'In the cloud using Sauce Labs'
239
+ when: /* istanbul ignore next */ (answers) => answers.backend === exports.BACKEND_CHOICES[2]
239
240
  }, {
240
241
  type: 'input',
241
242
  name: 'env_key',
242
243
  message: 'Environment variable for access key',
243
244
  default: 'SAUCE_ACCESS_KEY',
244
- when: /* istanbul ignore next */ (answers) => answers.backend === 'In the cloud using Sauce Labs'
245
+ when: /* istanbul ignore next */ (answers) => answers.backend === exports.BACKEND_CHOICES[2]
245
246
  }, {
246
247
  type: 'confirm',
247
248
  name: 'headless',
248
249
  message: 'Do you want to run your test on Sauce Headless? (https://saucelabs.com/products/web-testing/sauce-headless)',
249
250
  default: false,
250
- when: /* istanbul ignore next */ (answers) => answers.backend === 'In the cloud using Sauce Labs'
251
+ when: /* istanbul ignore next */ (answers) => answers.backend === exports.BACKEND_CHOICES[2]
251
252
  }, {
252
253
  type: 'list',
253
254
  name: 'region',
@@ -344,12 +345,36 @@ exports.QUESTIONNAIRE = [{
344
345
  type: 'checkbox',
345
346
  name: 'services',
346
347
  message: 'Do you want to add a service to your test setup?',
347
- choices: exports.SUPPORTED_PACKAGES.service,
348
+ choices: (answers) => {
349
+ if (answers.backend === exports.BACKEND_CHOICES[3]) {
350
+ const index = exports.SUPPORTED_PACKAGES.service.findIndex(({ name }) => name === 'browserstack');
351
+ return exports.SUPPORTED_PACKAGES.service.slice(index)
352
+ .concat(exports.SUPPORTED_PACKAGES.service.slice(0, index));
353
+ }
354
+ else if (answers.backend === exports.BACKEND_CHOICES[2]) {
355
+ const index = exports.SUPPORTED_PACKAGES.service.findIndex(({ name }) => name === 'sauce');
356
+ return exports.SUPPORTED_PACKAGES.service.slice(index)
357
+ .concat(exports.SUPPORTED_PACKAGES.service.slice(0, index));
358
+ }
359
+ return exports.SUPPORTED_PACKAGES.service;
360
+ },
348
361
  // @ts-ignore
349
- default: [exports.SUPPORTED_PACKAGES.service.find(
350
- /* istanbul ignore next */
351
- ({ name }) => name === 'chromedriver').value
352
- ],
362
+ default: (answers) => {
363
+ var _a, _b, _c;
364
+ if (answers.backend === exports.BACKEND_CHOICES[3]) {
365
+ return [(_a = exports.SUPPORTED_PACKAGES.service.find(
366
+ /* istanbul ignore next */
367
+ ({ name }) => name === 'browserstack')) === null || _a === void 0 ? void 0 : _a.value];
368
+ }
369
+ else if (answers.backend === exports.BACKEND_CHOICES[2]) {
370
+ return [(_b = exports.SUPPORTED_PACKAGES.service.find(
371
+ /* istanbul ignore next */
372
+ ({ name }) => name === 'sauce')) === null || _b === void 0 ? void 0 : _b.value];
373
+ }
374
+ return [(_c = exports.SUPPORTED_PACKAGES.service.find(
375
+ /* istanbul ignore next */
376
+ ({ name }) => name === 'chromedriver')) === null || _c === void 0 ? void 0 : _c.value];
377
+ },
353
378
  validate: /* istanbul ignore next */ (answers) => (0, utils_1.validateServiceAnswers)(answers)
354
379
  }, {
355
380
  type: 'input',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/cli",
3
- "version": "7.29.1",
3
+ "version": "7.30.1",
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",
@@ -37,7 +37,7 @@
37
37
  "@types/lodash.union": "^4.6.6",
38
38
  "@types/node": "^18.0.0",
39
39
  "@types/recursive-readdir": "^2.2.0",
40
- "@wdio/config": "7.26.0",
40
+ "@wdio/config": "7.30.0",
41
41
  "@wdio/logger": "7.26.0",
42
42
  "@wdio/protocols": "7.27.0",
43
43
  "@wdio/types": "7.26.0",
@@ -54,7 +54,7 @@
54
54
  "lodash.union": "^4.6.0",
55
55
  "mkdirp": "^1.0.4",
56
56
  "recursive-readdir": "^2.2.2",
57
- "webdriverio": "7.29.1",
57
+ "webdriverio": "7.30.1",
58
58
  "yargs": "^17.0.0",
59
59
  "yarn-install": "^1.0.0"
60
60
  },
@@ -62,5 +62,5 @@
62
62
  "access": "public"
63
63
  },
64
64
  "types": "./build/index.d.ts",
65
- "gitHead": "3fd0e82b5aa72b0def63dce77adad31b9f862600"
65
+ "gitHead": "c5c25e4e20b5ab75817d879deefaafceb247b602"
66
66
  }