@mablhq/mabl-cli 1.16.16 → 1.17.0

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.
Files changed (126) hide show
  1. package/api/basicApiClient.js +9 -4
  2. package/api/mablApiClient.js +14 -7
  3. package/browserLauncher/browserLauncherFactory.js +2 -1
  4. package/browserLauncher/elementHandle.js +2 -1
  5. package/browserLauncher/playwrightBrowserLauncher/playwrightBrowser.js +5 -1
  6. package/browserLauncher/playwrightBrowserLauncher/playwrightDom.js +22 -18
  7. package/browserLauncher/playwrightBrowserLauncher/playwrightFrame.js +10 -6
  8. package/browserLauncher/playwrightBrowserLauncher/playwrightHttpRequest.js +5 -1
  9. package/browserLauncher/playwrightBrowserLauncher/playwrightPage.js +13 -9
  10. package/browserLauncher/puppeteerBrowserLauncher/puppeteerBrowser.js +1 -1
  11. package/browserLauncher/puppeteerBrowserLauncher/puppeteerElementHandle.js +10 -10
  12. package/browserLauncher/puppeteerBrowserLauncher/puppeteerFrame.js +6 -6
  13. package/browserLauncher/puppeteerBrowserLauncher/puppeteerHttpRequest.js +1 -1
  14. package/browserLauncher/puppeteerBrowserLauncher/puppeteerHttpResponse.js +1 -1
  15. package/browserLauncher/puppeteerBrowserLauncher/puppeteerJsHandle.js +3 -3
  16. package/browserLauncher/puppeteerBrowserLauncher/puppeteerPage.js +12 -11
  17. package/cli.js +12 -8
  18. package/commands/applications/applications_cmds/describe.js +4 -4
  19. package/commands/applications/applications_cmds/list.js +4 -4
  20. package/commands/auth/auth_cmds/activate-key.js +1 -1
  21. package/commands/branches/branches_cmds/create.js +4 -4
  22. package/commands/branches/branches_cmds/describe.js +3 -3
  23. package/commands/branches/branches_cmds/list.js +3 -3
  24. package/commands/branches/branches_cmds/merge.js +4 -4
  25. package/commands/commandUtil/codeInsights.js +4 -2
  26. package/commands/commandUtil/describe.js +1 -1
  27. package/commands/commandUtil/fileUtil.js +5 -1
  28. package/commands/commandUtil/util.js +2 -2
  29. package/commands/config/config_cmds/delete.js +1 -1
  30. package/commands/config/config_cmds/set.js +1 -1
  31. package/commands/constants.js +2 -1
  32. package/commands/credentials/credentials_cmds/list.js +4 -4
  33. package/commands/deploy/deploy_cmds/create.js +18 -13
  34. package/commands/deploy/deploy_cmds/describe.js +5 -5
  35. package/commands/deploy/deploy_cmds/executionResultPresenter.js +1 -1
  36. package/commands/deploy/deploy_cmds/list.js +4 -4
  37. package/commands/deploy/deploy_cmds/watch.js +2 -2
  38. package/commands/environments/environments_cmds/create.js +7 -7
  39. package/commands/environments/environments_cmds/delete.js +1 -1
  40. package/commands/environments/environments_cmds/describe.js +4 -4
  41. package/commands/environments/environments_cmds/list.js +4 -4
  42. package/commands/environments/environments_cmds/update.js +2 -2
  43. package/commands/environments/environments_cmds/urls_cmds/add.js +3 -3
  44. package/commands/environments/environments_cmds/urls_cmds/list.js +2 -2
  45. package/commands/flows/flows_cmds/export.js +5 -5
  46. package/commands/flows/flows_cmds/list.js +2 -2
  47. package/commands/link-agents/link-agents_cmds/delete.js +1 -1
  48. package/commands/plans/plans_cmds/describe.js +4 -4
  49. package/commands/plans/plans_cmds/list.js +2 -2
  50. package/commands/test-runs/test-runs_cmds/export.js +2 -2
  51. package/commands/tests/executionUtil.js +5 -5
  52. package/commands/tests/testsUtil.js +24 -13
  53. package/commands/tests/tests_cmds/create.js +3 -3
  54. package/commands/tests/tests_cmds/edit.js +3 -3
  55. package/commands/tests/tests_cmds/export.js +7 -7
  56. package/commands/tests/tests_cmds/import.js +35 -14
  57. package/commands/tests/tests_cmds/list.js +3 -3
  58. package/commands/tests/tests_cmds/run-alpha.js +3 -3
  59. package/commands/tests/tests_cmds/run-cloud.js +4 -4
  60. package/commands/tests/tests_cmds/run-legacy.js +8 -8
  61. package/commands/tests/tests_cmds/run.js +8 -8
  62. package/commands/tests/tests_cmds/trainer_cmds/trainerUtil.js +2 -2
  63. package/commands/tests/tests_cmds/trainer_cmds/update.js +1 -1
  64. package/commands/tests/tests_cmds/trainer_cmds/version.js +2 -2
  65. package/commands/workspaces/workspace_cmds/copy.js +2 -2
  66. package/commands/workspaces/workspace_cmds/describe.js +4 -4
  67. package/commands/workspaces/workspace_cmds/list.js +2 -2
  68. package/configGenerators/flowConfigGenerator.js +1 -1
  69. package/configGenerators/selIdeGenerator.js +6 -6
  70. package/core/messaging/actions/runnerActions.js +2 -2
  71. package/core/trainer/openUtils.js +2 -2
  72. package/core/trainer/trainingSessions.js +26 -26
  73. package/domUtil/index.js +1 -1
  74. package/env/env.js +5 -1
  75. package/execution/index.js +1 -1
  76. package/mablApi/index.js +1 -1
  77. package/mablscript/AttributesConstants.js +2 -1
  78. package/mablscript/MablStep.js +6 -12
  79. package/mablscript/actions/ConditionAction.js +1 -1
  80. package/mablscript/actions/FindAction.js +34 -38
  81. package/mablscript/actions/GetUrlAction.js +1 -1
  82. package/mablscript/actions/GetVariableValue.js +1 -1
  83. package/mablscript/actions/JavaScriptAction.js +16 -16
  84. package/mablscript/importer.js +7 -7
  85. package/mablscript/steps/AccessibilityCheck.js +4 -2
  86. package/mablscript/steps/AssertStep.js +16 -16
  87. package/mablscript/steps/AssertStepOld.js +2 -2
  88. package/mablscript/steps/ClickStep.js +1 -1
  89. package/mablscript/steps/CreateVariableStep.js +6 -6
  90. package/mablscript/steps/DoubleClickStep.js +1 -1
  91. package/mablscript/steps/EchoStep.js +2 -2
  92. package/mablscript/steps/EnterTextStep.js +3 -3
  93. package/mablscript/steps/HoverStep.js +1 -1
  94. package/mablscript/steps/IfConditionStep.js +2 -1
  95. package/mablscript/steps/NavigateStep.js +1 -1
  96. package/mablscript/steps/SendHttpRequestStep.js +1 -1
  97. package/mablscript/steps/SendKeyStep.js +2 -2
  98. package/mablscript/steps/SetViewportStep.js +1 -1
  99. package/mablscript/steps/SwitchContextStep.js +9 -9
  100. package/mablscript/steps/VisitUrlStep.js +1 -1
  101. package/mablscript/steps/WaitStep.js +1 -1
  102. package/mablscript/steps/WaitUntilStep.js +1 -1
  103. package/mablscript/types/OperatingSystemDescriptor.js +5 -1
  104. package/mablscript/types/VariableNamespace.js +1 -1
  105. package/mablscriptFind/index.js +1 -1
  106. package/observers/mockObserver.js +4 -2
  107. package/package.json +56 -56
  108. package/popupDismissal/index.js +3 -3
  109. package/providers/authenticationProvider.js +3 -3
  110. package/providers/logging/loggingProvider.js +5 -1
  111. package/proxy/index.js +2 -1
  112. package/proxy/index.js.LICENSE.txt +5 -0
  113. package/reporters/mochAwesome/mochAwesomeReporter.js +11 -7
  114. package/reporters/reporter.js +1 -1
  115. package/resources/mablFind.js +1 -1
  116. package/resources/pdf-viewer/embeddedPdfDetection.js +19 -8
  117. package/resources/popupDismissal.js +1 -1
  118. package/util/RichPromise.js +1 -0
  119. package/util/actionabilityUtil.js +18 -14
  120. package/util/analytics.js +7 -3
  121. package/util/downloadUtil.js +6 -2
  122. package/util/httpUtil.js +6 -2
  123. package/util/logUtils.js +7 -1
  124. package/util/markdownUtil.js +1 -1
  125. package/util/pureUtil.js +5 -1
  126. package/util/resourceUtil.js +5 -1
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FakeObserver = exports.noopPageLifecycleCallback = exports.noopObserveAfterFunction = exports.noopObserveDeferredFunction = void 0;
4
- exports.noopObserveDeferredFunction = () => Promise.resolve();
5
- exports.noopObserveAfterFunction = () => Promise.resolve();
4
+ const noopObserveDeferredFunction = () => Promise.resolve();
5
+ exports.noopObserveDeferredFunction = noopObserveDeferredFunction;
6
+ const noopObserveAfterFunction = () => Promise.resolve();
7
+ exports.noopObserveAfterFunction = noopObserveAfterFunction;
6
8
  exports.noopPageLifecycleCallback = {
7
9
  onPageCreated: () => { },
8
10
  onPageDestroyed: () => { },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mablhq/mabl-cli",
3
- "version": "1.16.16",
3
+ "version": "1.17.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "The official mabl command line interface tool",
6
6
  "main": "index.js",
@@ -25,71 +25,71 @@
25
25
  "postinstall": "node ./util/postInstallMessage.js"
26
26
  },
27
27
  "dependencies": {
28
- "@playwright/test": "1.17.2",
29
- "@types/fs-extra": "^8.1.0",
30
- "@types/serve-handler": "^6.1.0",
31
- "@types/tmp": "^0.2.0",
32
- "agent-base": "^6.0.2",
33
- "analytics-node": "^3.5.0",
34
- "anyproxy": "^4.1.3",
35
- "async-mutex": "^0.3.1",
28
+ "@playwright/test": "1.19.2",
29
+ "@types/fs-extra": "8.1.1",
30
+ "@types/serve-handler": "6.1.0",
31
+ "@types/tmp": "0.2.0",
32
+ "agent-base": "6.0.2",
33
+ "analytics-node": "3.5.0",
34
+ "async-mutex": "0.3.1",
36
35
  "async-retry": "1.3.3",
37
36
  "axe-core": "4.3.3",
38
- "axios": "^0.21.1",
37
+ "axios": "0.21.1",
39
38
  "axios-cookiejar-support": "1.0.1",
39
+ "cd": "0.3.3",
40
40
  "chalk": "2.4.2",
41
- "change-case": "^4.1.1",
42
- "chrome-launcher": "^0.13.1",
41
+ "change-case": "4.1.1",
42
+ "chrome-launcher": "0.13.3",
43
43
  "cli-table3": "0.6.1",
44
- "conf": "^7.1.2",
45
- "decompress-zip": "^0.2.2",
46
- "encodeurl": "^1.0.2",
47
- "env-paths": "^2.2.0",
48
- "esprima": "^4.0.1",
49
- "estraverse": "^4.3.0",
50
- "fastest-levenshtein": "^1.0.10",
51
- "fs-extra": "^8.1.0",
52
- "git-repo-info": "^2.1.1",
53
- "glob": "^7.1.4",
54
- "https-proxy-agent": "^5.0.0",
55
- "humanize-duration": "^3.21.0",
56
- "inquirer": "^7.0.4",
57
- "js-yaml": "^3.13.1",
58
- "jsesc": "^3.0.2",
59
- "jwt-decode": "^2.2.0",
60
- "lodash.get": "^4.4.2",
61
- "markdown-table": "^2.0.0",
62
- "mime-types": "^2.1.26",
63
- "mochawesome-report-generator": "^5.2.0",
44
+ "conf": "7.1.2",
45
+ "decompress-zip": "0.2.2",
46
+ "encodeurl": "1.0.2",
47
+ "env-paths": "2.2.0",
48
+ "esprima": "4.0.1",
49
+ "estraverse": "4.3.0",
50
+ "fastest-levenshtein": "1.0.12",
51
+ "fs-extra": "8.1.0",
52
+ "git-repo-info": "2.1.1",
53
+ "glob": "7.1.6",
54
+ "https-proxy-agent": "5.0.0",
55
+ "humanize-duration": "3.23.0",
56
+ "inquirer": "7.1.0",
57
+ "js-yaml": "3.14.0",
58
+ "jsesc": "3.0.2",
59
+ "jwt-decode": "2.2.0",
60
+ "lodash.get": "4.4.2",
61
+ "markdown-table": "2.0.0",
62
+ "mime-types": "2.1.27",
63
+ "mochawesome-report-generator": "5.2.0",
64
64
  "moment": "2.26.0",
65
- "moment-duration-format": "^2.3.2",
65
+ "moment-duration-format": "2.3.2",
66
66
  "newman": "5.2.3",
67
- "open": "^6.4.0",
68
- "ora": "^4.0.2",
69
- "playwright-core": "1.17.2",
70
- "pluralize": "^8.0.0",
71
- "pngjs": "^6.0.0",
72
- "portfinder": "^1.0.26",
67
+ "open": "6.4.0",
68
+ "ora": "4.0.4",
69
+ "playwright-core": "1.19.2",
70
+ "pluralize": "8.0.0",
71
+ "pngjs": "6.0.0",
72
+ "portfinder": "1.0.26",
73
73
  "postman-collection": "3.6.11",
74
- "puppeteer-core": "^7.1.0",
75
- "query-string": "^6.9.0",
76
- "range_check": "^2.0.4",
74
+ "puppeteer-core": "7.1.0",
75
+ "query-string": "6.13.1",
76
+ "range_check": "2.0.4",
77
77
  "retry": "0.13.1",
78
78
  "sanitize-html": "2.3.3",
79
- "serve-handler": "^6.1.3",
80
- "socks-proxy-agent": "^5.0.0",
81
- "stoppable": "^1.1.0",
82
- "strip-ansi": "^6.0.0",
83
- "tmp-promise": "^3.0.2",
84
- "tough-cookie": "^4.0.0",
85
- "triple-beam": "^1.3.0",
86
- "update-notifier": "^5.0.1",
87
- "uuid": "^7.0.2",
88
- "v8-compile-cache": "^2.1.0",
89
- "winston": "^3.3.3",
90
- "winston-transport": "^4.4.0",
91
- "y18n": "^4.0.1",
92
- "yargonaut": "^1.1.4",
79
+ "serve-handler": "6.1.3",
80
+ "socks-proxy-agent": "5.0.0",
81
+ "stoppable": "1.1.0",
82
+ "strip-ansi": "6.0.0",
83
+ "tmp-promise": "3.0.2",
84
+ "tough-cookie": "4.0.0",
85
+ "triple-beam": "1.3.0",
86
+ "update-notifier": "5.0.1",
87
+ "uuid": "7.0.3",
88
+ "v8-compile-cache": "2.1.1",
89
+ "winston": "3.3.3",
90
+ "winston-transport": "4.4.0",
91
+ "y18n": "4.0.1",
92
+ "yargonaut": "1.1.4",
93
93
  "yargs": "14.2.3"
94
94
  }
95
95
  }
@@ -91,9 +91,9 @@ function developCloseCandidates(candidates) {
91
91
  const domCovering = [];
92
92
  const actionableElements = [];
93
93
  candidate.elements.forEach((element) => {
94
- var _a, _b;
95
- if ((_a = element) === null || _a === void 0 ? void 0 : _a.offsetParent) {
96
- if (['BUTTON', 'A', 'DIV'].includes((_b = element.tagName) === null || _b === void 0 ? void 0 : _b.toUpperCase()) &&
94
+ var _a;
95
+ if (element === null || element === void 0 ? void 0 : element.offsetParent) {
96
+ if (['BUTTON', 'A', 'DIV'].includes((_a = element.tagName) === null || _a === void 0 ? void 0 : _a.toUpperCase()) &&
97
97
  checkElementAttributes(element) &&
98
98
  !actionableElements.includes(element)) {
99
99
  actionableElements.push(element);
@@ -26,7 +26,7 @@ var AuthProviderType;
26
26
  class AuthenticationProvider {
27
27
  constructor() {
28
28
  this.verbose = false;
29
- const client = axios_1.default.create(httpUtil_1.currentProxyConfig());
29
+ const client = axios_1.default.create((0, httpUtil_1.currentProxyConfig)());
30
30
  this.oktaClient = new OktaClient_1.OktaClient(client);
31
31
  }
32
32
  async getAuthConfigWithAutoRenew() {
@@ -189,7 +189,7 @@ ${authUrl}
189
189
  }
190
190
  }
191
191
  openUrl(path) {
192
- return open_1.default(path);
192
+ return (0, open_1.default)(path);
193
193
  }
194
194
  static async requestUserInfo(accessToken) {
195
195
  const apiClient = mablApiClientFactory_1.MablApiClientFactory.createApiClientForAccessToken(accessToken);
@@ -204,5 +204,5 @@ function humanizeExpirationTime(milliseconds) {
204
204
  });
205
205
  }
206
206
  function isOidcError(err) {
207
- return pureUtil_1.isString(err === null || err === void 0 ? void 0 : err.error) && pureUtil_1.isString(err === null || err === void 0 ? void 0 : err.error_description);
207
+ return (0, pureUtil_1.isString)(err === null || err === void 0 ? void 0 : err.error) && (0, pureUtil_1.isString)(err === null || err === void 0 ? void 0 : err.error_description);
208
208
  }
@@ -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];