@mablhq/mabl-cli 2.28.3 → 2.29.7
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/browserEngines/chromiumBrowserEngine.js +0 -1
- package/commands/tests/tests_cmds/export.js +8 -1
- package/execution/index.js +2 -2
- package/mablscript/MablStepV2.js +4 -1
- package/mablscript/importer.js +4 -2
- package/mablscript/mobile/steps/HideKeyboardStep.js +20 -0
- package/mablscript/mobile/tests/steps/HideKeyboardStep.mobiletest.js +27 -0
- package/mablscript/steps/DatabaseQueryStep.js +24 -0
- package/mablscript/types/mobile/HideKeyboardStepDescriptor.js +2 -0
- package/package.json +1 -1
- package/resources/webdriver.js +1 -1
- package/webdriver/index.js +5 -2
- package/mablscript/steps/DatabaseCallStep.js +0 -24
|
@@ -47,7 +47,6 @@ const baseExecutionEngineLaunchArgs = [
|
|
|
47
47
|
'--enable-logging',
|
|
48
48
|
'--v=0',
|
|
49
49
|
'--enable-features=NetworkService,NetworkServiceInProcess',
|
|
50
|
-
'--disable-features=site-per-process',
|
|
51
50
|
'--disable-component-update',
|
|
52
51
|
];
|
|
53
52
|
const ExecutionEngineFakeAudioFilePath = '/opt/media/mabl_test_audio.wav';
|
|
@@ -71,7 +71,8 @@ async function exportTest(parsed) {
|
|
|
71
71
|
const flowArray = await (0, util_1.getJourneyFlowArray)(journey, apiClient, branchName);
|
|
72
72
|
if (flowArray
|
|
73
73
|
.map((flow) => flow.flow_type === mablApi_1.Flow.FlowTypeEnum.Mablscript ||
|
|
74
|
-
flow.flow_type === mablApi_1.Flow.FlowTypeEnum.Api
|
|
74
|
+
flow.flow_type === mablApi_1.Flow.FlowTypeEnum.Api ||
|
|
75
|
+
flow.flow_type === mablApi_1.Flow.FlowTypeEnum.Mobile)
|
|
75
76
|
.includes(false)) {
|
|
76
77
|
loggingProvider_1.logger.info(chalk.red(`Default mabl tests can not be exported`));
|
|
77
78
|
return;
|
|
@@ -80,8 +81,14 @@ async function exportTest(parsed) {
|
|
|
80
81
|
case constants_1.OutputFormats.Csv:
|
|
81
82
|
return dumpToCsv(journey, flowArray, fileName);
|
|
82
83
|
case constants_1.OutputFormats.SeleniumIde:
|
|
84
|
+
if (journey.test_type !== mablApi_1.TestTypeEnum.Browser) {
|
|
85
|
+
throw new Error('Selenium IDE tests can only be exported for browser tests.');
|
|
86
|
+
}
|
|
83
87
|
return dumpToSeleniumIde(journey, flowArray, fileName);
|
|
84
88
|
case constants_1.OutputFormats.Playwright:
|
|
89
|
+
if (journey.test_type !== mablApi_1.TestTypeEnum.Browser) {
|
|
90
|
+
throw new Error('Playwright tests can only be exported for browser tests.');
|
|
91
|
+
}
|
|
85
92
|
return dumpToPlaywrightTest(journey, flowArray, apiClient, fileName, environmentId);
|
|
86
93
|
case constants_1.OutputFormats.Json:
|
|
87
94
|
case constants_1.OutputFormats.Yaml:
|