@mablhq/mabl-cli 2.50.0 → 2.51.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.
@@ -43,15 +43,15 @@ function convertOperationValue(op) {
43
43
  }
44
44
  }
45
45
  function parseFlowIntoStepList(flow) {
46
- if (flow.flow_type === mablApi_1.Flow.FlowTypeEnum.Mobile) {
46
+ if (flow.flow_type === mablApi_1.FlowTypeEnum.Mobile) {
47
47
  return (0, importer_1.interpretStepsFromObjectsInFlow)(flow, true);
48
48
  }
49
49
  return (0, importer_1.parseMablScriptIntoSteps)(flow);
50
50
  }
51
51
  function convertFlowToStepList(flow, flowConfig) {
52
52
  if (!flow.reusable &&
53
- (flow.flow_type === mablApi_1.Flow.FlowTypeEnum.Mablscript ||
54
- flow.flow_type === mablApi_1.Flow.FlowTypeEnum.Mobile)) {
53
+ (flow.flow_type === mablApi_1.FlowTypeEnum.Mablscript ||
54
+ flow.flow_type === mablApi_1.FlowTypeEnum.Mobile)) {
55
55
  return parseFlowIntoStepList(flow);
56
56
  }
57
57
  const evaluateFlowStep = new EvaluateFlowStep_1.EvaluateFlowStep(EvaluateFlowStep_1.EvaluateFlowStep.mablScriptStepNames[0], [{ invariant_id: flow === null || flow === void 0 ? void 0 : flow.invariant_id }, flowConfig], []);
@@ -61,7 +61,7 @@ function convertFlowToStepList(flow, flowConfig) {
61
61
  return [evaluateFlowStep];
62
62
  }
63
63
  exports.convertFlowToStepList = convertFlowToStepList;
64
- function convertStepListToFlow(steps, flowType = mablApi_1.Flow.FlowTypeEnum.Mablscript) {
64
+ function convertStepListToFlow(steps, flowType = mablApi_1.FlowTypeEnum.Mablscript) {
65
65
  if (steps.length > 1 && steps.some((step) => (0, EvaluateFlowStep_1.isEvaluateFlowStep)(step))) {
66
66
  throw new Error('EvaluateFlow step(s) cannot be combined with other steps in a flow');
67
67
  }
@@ -84,10 +84,10 @@ function convertStepListToFlow(steps, flowType = mablApi_1.Flow.FlowTypeEnum.Mab
84
84
  return annotations;
85
85
  }, {});
86
86
  const flow = {
87
- json_steps: flowType === mablApi_1.Flow.FlowTypeEnum.Mobile
87
+ json_steps: flowType === mablApi_1.FlowTypeEnum.Mobile
88
88
  ? { steps: steps.map((step) => step.getFormattedStep(true)) }
89
89
  : undefined,
90
- script: flowType === mablApi_1.Flow.FlowTypeEnum.Mablscript
90
+ script: flowType === mablApi_1.FlowTypeEnum.Mablscript
91
91
  ? addTrailingNewline((0, importer_1.mablscriptTheLoadedSteps)(steps))
92
92
  : undefined,
93
93
  script_description: steps.map(getStepDescription).join('\n'),
@@ -107,7 +107,7 @@ function flattenTestFlowsIntoSteps(flows, flowConfigs) {
107
107
  return flows.flatMap((flow, index) => convertFlowToStepList(flow, flowConfigs === null || flowConfigs === void 0 ? void 0 : flowConfigs[index]));
108
108
  }
109
109
  exports.flattenTestFlowsIntoSteps = flattenTestFlowsIntoSteps;
110
- function constructTestFlowsFromSteps(steps, flowType = mablApi_1.Flow.FlowTypeEnum.Mablscript) {
110
+ function constructTestFlowsFromSteps(steps, flowType = mablApi_1.FlowTypeEnum.Mablscript) {
111
111
  const flowSteps = [];
112
112
  let chunk = [];
113
113
  for (const step of steps) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mablhq/mabl-cli",
3
- "version": "2.50.0",
3
+ "version": "2.51.1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "The official mabl command line interface tool",
6
6
  "main": "index.js",
@@ -76,8 +76,8 @@
76
76
  "open": "6.4.0",
77
77
  "ora": "4.0.4",
78
78
  "pixelmatch": "5.3.0",
79
- "playwright": "1.46.1",
80
- "playwright-core": "1.46.1",
79
+ "playwright": "1.48.1",
80
+ "playwright-core": "1.48.1",
81
81
  "pluralize": "8.0.0",
82
82
  "pngjs": "6.0.0",
83
83
  "portfinder": "1.0.28",