@mablhq/mabl-cli 1.16.32 → 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 +19 -12
- 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 +25 -32
- 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 +55 -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/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/markdownUtil.js +1 -1
- package/util/pureUtil.js +5 -1
- package/util/resourceUtil.js +5 -1
|
@@ -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];
|
|
@@ -34,7 +38,7 @@ function generateMochAwesomeReportFromTestResults(testResults, reportOptions) {
|
|
|
34
38
|
const plainSuite = generatePlainSuiteFromTestResults(testResults);
|
|
35
39
|
const parentSuite = generateHoldingTestSuiteObj(plainSuite);
|
|
36
40
|
const finalOptions = generateReportOptions(reportOptions);
|
|
37
|
-
const cliVersion = `@mablhq/mabl-cli@${pureUtil_1.getCliVersion()}`;
|
|
41
|
+
const cliVersion = `@mablhq/mabl-cli@${(0, pureUtil_1.getCliVersion)()}`;
|
|
38
42
|
const testReportObj = {
|
|
39
43
|
results: [parentSuite],
|
|
40
44
|
stats: {
|
|
@@ -47,8 +51,8 @@ function generateMochAwesomeReportFromTestResults(testResults, reportOptions) {
|
|
|
47
51
|
hasOther: false,
|
|
48
52
|
skipped: testResults.numSkippedTests,
|
|
49
53
|
hasSkipped: !!testResults.numSkippedTests,
|
|
50
|
-
start: moment_1.default(testResults.startTime).toISOString(),
|
|
51
|
-
end: moment_1.default(testResults.endTime).toISOString(),
|
|
54
|
+
start: (0, moment_1.default)(testResults.startTime).toISOString(),
|
|
55
|
+
end: (0, moment_1.default)(testResults.endTime).toISOString(),
|
|
52
56
|
duration: testResults.endTime - testResults.startTime,
|
|
53
57
|
failures: testResults.numFailedTests,
|
|
54
58
|
passes: testResults.numPassedTests,
|
|
@@ -84,7 +88,7 @@ function generateMochAwesomeReportFromTestResults(testResults, reportOptions) {
|
|
|
84
88
|
}
|
|
85
89
|
exports.generateMochAwesomeReportFromTestResults = generateMochAwesomeReportFromTestResults;
|
|
86
90
|
function generatePlainSuiteFromTestResults(testResults) {
|
|
87
|
-
const parentId = uuid_1.v4();
|
|
91
|
+
const parentId = (0, uuid_1.v4)();
|
|
88
92
|
const plainTests = testResults.testResults.map((testResult) => generatePlainTestForTestRun(parentId, testResult));
|
|
89
93
|
const passes = plainTests
|
|
90
94
|
.filter((test) => test.pass)
|
|
@@ -126,7 +130,7 @@ function generatePlainTestForTestRun(parentUuid, testResult) {
|
|
|
126
130
|
pass: testResult.status === TestResult_1.TestResultStatus.passed,
|
|
127
131
|
fail: testResult.status === TestResult_1.TestResultStatus.failed,
|
|
128
132
|
pending: false,
|
|
129
|
-
uuid: uuid_1.v4(),
|
|
133
|
+
uuid: (0, uuid_1.v4)(),
|
|
130
134
|
isHook: false,
|
|
131
135
|
skipped: testResult.status === TestResult_1.TestResultStatus.skipped,
|
|
132
136
|
err: testResult.errorMessage
|
|
@@ -177,7 +181,7 @@ function constructTestRunCommand() {
|
|
|
177
181
|
}
|
|
178
182
|
function generateHoldingTestSuiteObj(suite) {
|
|
179
183
|
return {
|
|
180
|
-
uuid: uuid_1.v4(),
|
|
184
|
+
uuid: (0, uuid_1.v4)(),
|
|
181
185
|
title: `mabl CLI test run`,
|
|
182
186
|
fullFile: 'mabl/tests/run',
|
|
183
187
|
file: 'mabl/tests/run',
|
package/reporters/reporter.js
CHANGED
|
@@ -15,7 +15,7 @@ async function handleReportingForTestsRun(reporter, testResults, reportOptions)
|
|
|
15
15
|
try {
|
|
16
16
|
switch (reporter) {
|
|
17
17
|
case constants_1.ReporterOptions.Mochawesome:
|
|
18
|
-
await mochAwesomeReporter_1.generateMochAwesomeReportFromTestResults(testResults, options);
|
|
18
|
+
await (0, mochAwesomeReporter_1.generateMochAwesomeReportFromTestResults)(testResults, options);
|
|
19
19
|
break;
|
|
20
20
|
default:
|
|
21
21
|
throw new Error(`Unsupported reporter options supplied: ${reporter}`);
|