@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.
- package/api/basicApiClient.js +9 -4
- package/api/mablApiClient.js +14 -7
- package/browserLauncher/browserLauncherFactory.js +2 -1
- package/browserLauncher/elementHandle.js +2 -1
- package/browserLauncher/playwrightBrowserLauncher/playwrightBrowser.js +5 -1
- package/browserLauncher/playwrightBrowserLauncher/playwrightDom.js +22 -18
- package/browserLauncher/playwrightBrowserLauncher/playwrightFrame.js +10 -6
- package/browserLauncher/playwrightBrowserLauncher/playwrightHttpRequest.js +5 -1
- package/browserLauncher/playwrightBrowserLauncher/playwrightPage.js +13 -9
- package/browserLauncher/puppeteerBrowserLauncher/puppeteerBrowser.js +1 -1
- package/browserLauncher/puppeteerBrowserLauncher/puppeteerElementHandle.js +10 -10
- package/browserLauncher/puppeteerBrowserLauncher/puppeteerFrame.js +6 -6
- package/browserLauncher/puppeteerBrowserLauncher/puppeteerHttpRequest.js +1 -1
- package/browserLauncher/puppeteerBrowserLauncher/puppeteerHttpResponse.js +1 -1
- package/browserLauncher/puppeteerBrowserLauncher/puppeteerJsHandle.js +3 -3
- package/browserLauncher/puppeteerBrowserLauncher/puppeteerPage.js +12 -11
- package/cli.js +12 -8
- package/commands/applications/applications_cmds/describe.js +4 -4
- package/commands/applications/applications_cmds/list.js +4 -4
- package/commands/auth/auth_cmds/activate-key.js +1 -1
- package/commands/branches/branches_cmds/create.js +4 -4
- package/commands/branches/branches_cmds/describe.js +3 -3
- package/commands/branches/branches_cmds/list.js +3 -3
- package/commands/branches/branches_cmds/merge.js +4 -4
- package/commands/commandUtil/codeInsights.js +4 -2
- package/commands/commandUtil/describe.js +1 -1
- package/commands/commandUtil/fileUtil.js +5 -1
- package/commands/commandUtil/util.js +2 -2
- package/commands/config/config_cmds/delete.js +1 -1
- package/commands/config/config_cmds/set.js +1 -1
- package/commands/constants.js +2 -1
- package/commands/credentials/credentials_cmds/list.js +4 -4
- package/commands/deploy/deploy_cmds/create.js +18 -13
- package/commands/deploy/deploy_cmds/describe.js +5 -5
- package/commands/deploy/deploy_cmds/executionResultPresenter.js +1 -1
- package/commands/deploy/deploy_cmds/list.js +4 -4
- package/commands/deploy/deploy_cmds/watch.js +2 -2
- package/commands/environments/environments_cmds/create.js +7 -7
- package/commands/environments/environments_cmds/delete.js +1 -1
- package/commands/environments/environments_cmds/describe.js +4 -4
- package/commands/environments/environments_cmds/list.js +4 -4
- package/commands/environments/environments_cmds/update.js +2 -2
- package/commands/environments/environments_cmds/urls_cmds/add.js +3 -3
- package/commands/environments/environments_cmds/urls_cmds/list.js +2 -2
- package/commands/flows/flows_cmds/export.js +5 -5
- package/commands/flows/flows_cmds/list.js +2 -2
- package/commands/link-agents/link-agents_cmds/delete.js +1 -1
- package/commands/plans/plans_cmds/describe.js +4 -4
- package/commands/plans/plans_cmds/list.js +2 -2
- package/commands/test-runs/test-runs_cmds/export.js +2 -2
- package/commands/tests/executionUtil.js +5 -5
- package/commands/tests/testsUtil.js +24 -13
- package/commands/tests/tests_cmds/create.js +3 -3
- package/commands/tests/tests_cmds/edit.js +3 -3
- package/commands/tests/tests_cmds/export.js +7 -7
- package/commands/tests/tests_cmds/import.js +35 -14
- package/commands/tests/tests_cmds/list.js +3 -3
- package/commands/tests/tests_cmds/run-alpha.js +3 -3
- package/commands/tests/tests_cmds/run-cloud.js +4 -4
- package/commands/tests/tests_cmds/run-legacy.js +8 -8
- package/commands/tests/tests_cmds/run.js +8 -8
- package/commands/tests/tests_cmds/trainer_cmds/trainerUtil.js +2 -2
- package/commands/tests/tests_cmds/trainer_cmds/update.js +1 -1
- package/commands/tests/tests_cmds/trainer_cmds/version.js +2 -2
- package/commands/workspaces/workspace_cmds/copy.js +2 -2
- package/commands/workspaces/workspace_cmds/describe.js +4 -4
- package/commands/workspaces/workspace_cmds/list.js +2 -2
- package/configGenerators/flowConfigGenerator.js +1 -1
- package/configGenerators/selIdeGenerator.js +6 -6
- package/core/messaging/actions/runnerActions.js +2 -2
- package/core/trainer/openUtils.js +2 -2
- package/core/trainer/trainingSessions.js +26 -26
- package/domUtil/index.js +1 -1
- package/env/env.js +5 -1
- package/execution/index.js +1 -1
- package/mablApi/index.js +1 -1
- package/mablscript/AttributesConstants.js +2 -1
- package/mablscript/MablStep.js +6 -12
- package/mablscript/actions/ConditionAction.js +1 -1
- package/mablscript/actions/FindAction.js +34 -38
- package/mablscript/actions/GetUrlAction.js +1 -1
- package/mablscript/actions/GetVariableValue.js +1 -1
- package/mablscript/actions/JavaScriptAction.js +16 -16
- package/mablscript/importer.js +7 -7
- package/mablscript/steps/AccessibilityCheck.js +4 -2
- package/mablscript/steps/AssertStep.js +16 -16
- package/mablscript/steps/AssertStepOld.js +2 -2
- package/mablscript/steps/ClickStep.js +1 -1
- package/mablscript/steps/CreateVariableStep.js +6 -6
- package/mablscript/steps/DoubleClickStep.js +1 -1
- package/mablscript/steps/EchoStep.js +2 -2
- package/mablscript/steps/EnterTextStep.js +3 -3
- package/mablscript/steps/HoverStep.js +1 -1
- package/mablscript/steps/IfConditionStep.js +2 -1
- package/mablscript/steps/NavigateStep.js +1 -1
- package/mablscript/steps/SendHttpRequestStep.js +1 -1
- package/mablscript/steps/SendKeyStep.js +2 -2
- package/mablscript/steps/SetViewportStep.js +1 -1
- package/mablscript/steps/SwitchContextStep.js +9 -9
- package/mablscript/steps/VisitUrlStep.js +1 -1
- package/mablscript/steps/WaitStep.js +1 -1
- package/mablscript/steps/WaitUntilStep.js +1 -1
- package/mablscript/types/OperatingSystemDescriptor.js +5 -1
- package/mablscript/types/VariableNamespace.js +1 -1
- package/mablscriptFind/index.js +1 -1
- package/observers/mockObserver.js +4 -2
- package/package.json +56 -56
- package/popupDismissal/index.js +3 -3
- package/providers/authenticationProvider.js +3 -3
- package/providers/logging/loggingProvider.js +5 -1
- package/proxy/index.js +2 -1
- package/proxy/index.js.LICENSE.txt +5 -0
- package/reporters/mochAwesome/mochAwesomeReporter.js +11 -7
- package/reporters/reporter.js +1 -1
- package/resources/mablFind.js +1 -1
- package/resources/pdf-viewer/embeddedPdfDetection.js +19 -8
- package/resources/popupDismissal.js +1 -1
- package/util/RichPromise.js +1 -0
- package/util/actionabilityUtil.js +18 -14
- package/util/analytics.js +7 -3
- package/util/downloadUtil.js +6 -2
- package/util/httpUtil.js +6 -2
- package/util/logUtils.js +7 -1
- package/util/markdownUtil.js +1 -1
- package/util/pureUtil.js +5 -1
- 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
|
-
|
|
5
|
-
exports.
|
|
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.
|
|
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.
|
|
29
|
-
"@types/fs-extra": "
|
|
30
|
-
"@types/serve-handler": "
|
|
31
|
-
"@types/tmp": "
|
|
32
|
-
"agent-base": "
|
|
33
|
-
"analytics-node": "
|
|
34
|
-
"
|
|
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": "
|
|
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": "
|
|
42
|
-
"chrome-launcher": "
|
|
41
|
+
"change-case": "4.1.1",
|
|
42
|
+
"chrome-launcher": "0.13.3",
|
|
43
43
|
"cli-table3": "0.6.1",
|
|
44
|
-
"conf": "
|
|
45
|
-
"decompress-zip": "
|
|
46
|
-
"encodeurl": "
|
|
47
|
-
"env-paths": "
|
|
48
|
-
"esprima": "
|
|
49
|
-
"estraverse": "
|
|
50
|
-
"fastest-levenshtein": "
|
|
51
|
-
"fs-extra": "
|
|
52
|
-
"git-repo-info": "
|
|
53
|
-
"glob": "
|
|
54
|
-
"https-proxy-agent": "
|
|
55
|
-
"humanize-duration": "
|
|
56
|
-
"inquirer": "
|
|
57
|
-
"js-yaml": "
|
|
58
|
-
"jsesc": "
|
|
59
|
-
"jwt-decode": "
|
|
60
|
-
"lodash.get": "
|
|
61
|
-
"markdown-table": "
|
|
62
|
-
"mime-types": "
|
|
63
|
-
"mochawesome-report-generator": "
|
|
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": "
|
|
65
|
+
"moment-duration-format": "2.3.2",
|
|
66
66
|
"newman": "5.2.3",
|
|
67
|
-
"open": "
|
|
68
|
-
"ora": "
|
|
69
|
-
"playwright-core": "1.
|
|
70
|
-
"pluralize": "
|
|
71
|
-
"pngjs": "
|
|
72
|
-
"portfinder": "
|
|
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": "
|
|
75
|
-
"query-string": "
|
|
76
|
-
"range_check": "
|
|
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": "
|
|
80
|
-
"socks-proxy-agent": "
|
|
81
|
-
"stoppable": "
|
|
82
|
-
"strip-ansi": "
|
|
83
|
-
"tmp-promise": "
|
|
84
|
-
"tough-cookie": "
|
|
85
|
-
"triple-beam": "
|
|
86
|
-
"update-notifier": "
|
|
87
|
-
"uuid": "
|
|
88
|
-
"v8-compile-cache": "
|
|
89
|
-
"winston": "
|
|
90
|
-
"winston-transport": "
|
|
91
|
-
"y18n": "
|
|
92
|
-
"yargonaut": "
|
|
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
|
}
|
package/popupDismissal/index.js
CHANGED
|
@@ -91,9 +91,9 @@ function developCloseCandidates(candidates) {
|
|
|
91
91
|
const domCovering = [];
|
|
92
92
|
const actionableElements = [];
|
|
93
93
|
candidate.elements.forEach((element) => {
|
|
94
|
-
var _a
|
|
95
|
-
if (
|
|
96
|
-
if (['BUTTON', 'A', 'DIV'].includes((
|
|
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.
|
|
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];
|