@mablhq/mabl-cli 2.12.16 → 2.12.22

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.
@@ -67,6 +67,7 @@ const PushFileStep_1 = require("./mobile/steps/PushFileStep");
67
67
  const InstallAppStep_1 = require("./mobile/steps/InstallAppStep");
68
68
  const UninstallAppStep_1 = require("./mobile/steps/UninstallAppStep");
69
69
  const PrepareSessionStep_1 = require("./mobile/steps/PrepareSessionStep");
70
+ const OpenLinkStep_1 = require("./mobile/steps/OpenLinkStep");
70
71
  const ActionTypes = [
71
72
  AwaitDownloadAction_1.AwaitDownloadAction,
72
73
  AwaitPDFDownloadAction_1.AwaitPDFDownloadAction,
@@ -127,6 +128,7 @@ const MobileStepTypes = [
127
128
  EnterTextStep_2.EnterTextStep,
128
129
  SetOrientationStep_1.SetOrientationStep,
129
130
  ScrollStep_1.ScrollStep,
131
+ OpenLinkStep_1.OpenLinkStep,
130
132
  PrepareSessionStep_1.PrepareSessionStep,
131
133
  PushFileStep_1.PushFileStep,
132
134
  UninstallAppStep_1.UninstallAppStep,
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OpenLinkStep = void 0;
4
+ const MablStepV2_1 = require("../../MablStepV2");
5
+ class OpenLinkStep extends MablStepV2_1.MablStepV2 {
6
+ constructor(descriptor) {
7
+ super(OpenLinkStep.stepName, descriptor, 'openLink');
8
+ }
9
+ stepDescription() {
10
+ return `Open deep link: ${this.descriptor.url}`;
11
+ }
12
+ static fromYaml(_stepName, stepDescriptor) {
13
+ return new OpenLinkStep(stepDescriptor);
14
+ }
15
+ }
16
+ exports.OpenLinkStep = OpenLinkStep;
17
+ OpenLinkStep.stepName = 'OpenLink';
18
+ OpenLinkStep.yamlMablScriptNames = [OpenLinkStep.stepName];
19
+ OpenLinkStep.stepVersion = 2;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const OpenLinkStep_1 = require("../../steps/OpenLinkStep");
4
+ const StepTestsUtil_1 = require("../StepTestsUtil");
5
+ describe('Open link steps parse correctly', () => {
6
+ it('Parses an OpenLink step', () => {
7
+ const stepDescriptor = {
8
+ url: `testing-app://what/the/thing`,
9
+ packageName: 'testing-app',
10
+ };
11
+ const steps = [
12
+ {
13
+ OpenLink: stepDescriptor,
14
+ },
15
+ ];
16
+ (0, StepTestsUtil_1.parseAndValidateYamlConversion)(steps, OpenLinkStep_1.OpenLinkStep.stepName, stepDescriptor);
17
+ const openLinkStep = new OpenLinkStep_1.OpenLinkStep(stepDescriptor);
18
+ expect(openLinkStep.stepId()).toEqual(stepDescriptor.id);
19
+ });
20
+ });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mablhq/mabl-cli",
3
- "version": "2.12.16",
3
+ "version": "2.12.22",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "The official mabl command line interface tool",
6
6
  "main": "index.js",