@mablhq/mabl-cli 1.13.21 → 1.16.16

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.
Files changed (38) hide show
  1. package/api/basicApiClient.js +56 -32
  2. package/api/featureSet.js +27 -0
  3. package/api/mablApiClient.js +22 -21
  4. package/api/mablApiClientFactory.js +0 -8
  5. package/browserLauncher/pageEvent.js +1 -0
  6. package/browserLauncher/playwrightBrowserLauncher/playwrightBrowser.js +3 -0
  7. package/browserLauncher/playwrightBrowserLauncher/playwrightBrowserLauncher.js +2 -0
  8. package/browserLauncher/playwrightBrowserLauncher/playwrightDom.js +12 -0
  9. package/browserLauncher/playwrightBrowserLauncher/playwrightPage.js +6 -0
  10. package/browserLauncher/puppeteerBrowserLauncher/puppeteerBrowser.js +10 -0
  11. package/browserLauncher/puppeteerBrowserLauncher/puppeteerElementHandle.js +12 -0
  12. package/browserLauncher/puppeteerBrowserLauncher/puppeteerPage.js +6 -0
  13. package/commands/applications/applications_cmds/list.js +5 -2
  14. package/commands/branches/branches_cmds/list.js +5 -2
  15. package/commands/config/config_cmds/get.js +5 -2
  16. package/commands/config/config_cmds/list.js +5 -2
  17. package/commands/credentials/credentials_cmds/list.js +5 -2
  18. package/commands/deploy/deploy_cmds/executionResultPresenter.js +5 -2
  19. package/commands/deploy/deploy_cmds/list.js +5 -2
  20. package/commands/environments/environments_cmds/list.js +5 -2
  21. package/commands/flows/flows_cmds/list.js +5 -2
  22. package/commands/plans/plans_cmds/list.js +5 -2
  23. package/commands/tests/executionUtil.js +6 -1
  24. package/commands/tests/testsUtil.js +8 -23
  25. package/commands/tests/tests_cmds/list.js +5 -2
  26. package/commands/tests/tests_cmds/trainer_cmds/trainerUtil.js +2 -2
  27. package/commands/workspaces/workspace_cmds/list.js +5 -2
  28. package/domUtil/index.js +1 -1
  29. package/execution/index.js +1 -1
  30. package/execution/index.js.LICENSE.txt +0 -6
  31. package/mablApi/index.js +1 -1
  32. package/mablscript/MablStep.js +3 -0
  33. package/mablscript/steps/AccessibilityCheck.js +14 -2
  34. package/mablscriptFind/index.js +1 -1
  35. package/package.json +3 -3
  36. package/resources/mablFind.js +1 -1
  37. package/util/resourceUtil.js +39 -13
  38. package/api/entities/JourneyRunScheduledMessage.js +0 -2
@@ -9,6 +9,9 @@ class MablStep extends MablAction_1.MablAction {
9
9
  super(name, args);
10
10
  this.actions = actions;
11
11
  }
12
+ canContinueOnFailure() {
13
+ return false;
14
+ }
12
15
  getStepName() {
13
16
  return 'UnimplementedStep';
14
17
  }
@@ -1,10 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AccessibilityCheckStep = void 0;
3
+ exports.AccessibilityCheckStep = exports.AccessibilityCheckSeverity = void 0;
4
4
  const MablStep_1 = require("../MablStep");
5
5
  const FindAction_1 = require("../actions/FindAction");
6
6
  const ActionsUtils_1 = require("./ActionsUtils");
7
7
  const mablscriptFind_1 = require("../../mablscriptFind");
8
+ var AccessibilityCheckSeverity;
9
+ (function (AccessibilityCheckSeverity) {
10
+ AccessibilityCheckSeverity["Critical"] = "critical";
11
+ AccessibilityCheckSeverity["Minor"] = "minor";
12
+ AccessibilityCheckSeverity["Moderate"] = "moderate";
13
+ AccessibilityCheckSeverity["Serious"] = "serious";
14
+ })(AccessibilityCheckSeverity = exports.AccessibilityCheckSeverity || (exports.AccessibilityCheckSeverity = {}));
8
15
  class AccessibilityCheckStep extends MablStep_1.MablStep {
9
16
  constructor(name, args, actions) {
10
17
  super(name, args, actions);
@@ -14,11 +21,14 @@ class AccessibilityCheckStep extends MablStep_1.MablStep {
14
21
  this.checkConfig =
15
22
  this.getActionArgs()[0];
16
23
  }
24
+ canContinueOnFailure() {
25
+ return true;
26
+ }
17
27
  getStepName() {
18
28
  return AccessibilityCheckStep.yamlMablScriptNames[0];
19
29
  }
20
30
  toStepDescriptor() {
21
- var _a, _b, _c;
31
+ var _a, _b, _c, _d;
22
32
  if (this.findAction) {
23
33
  const find = this.findAction.toDescriptor();
24
34
  switch (find.findType) {
@@ -39,6 +49,7 @@ class AccessibilityCheckStep extends MablStep_1.MablStep {
39
49
  tags: (_a = this.checkConfig) === null || _a === void 0 ? void 0 : _a.tags,
40
50
  rules: (_b = this.checkConfig) === null || _b === void 0 ? void 0 : _b.rules,
41
51
  disabledRules: (_c = this.checkConfig) === null || _c === void 0 ? void 0 : _c.disabledRules,
52
+ failOn: (_d = this.checkConfig) === null || _d === void 0 ? void 0 : _d.failOn,
42
53
  };
43
54
  }
44
55
  getFormattedStep(_fullLocatorsOn) {
@@ -67,6 +78,7 @@ class AccessibilityCheckStep extends MablStep_1.MablStep {
67
78
  tags: stepArgs.tags,
68
79
  rules: stepArgs.rules,
69
80
  disabledRules: stepArgs.disabledRules,
81
+ failOn: stepArgs.failOn,
70
82
  };
71
83
  return new AccessibilityCheckStep(AccessibilityCheckStep.mablScriptStepNames[0], [checkConfig], actions);
72
84
  }