@mablhq/mabl-cli 2.51.4 → 2.51.12

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.
@@ -5,6 +5,7 @@ const MablStepV2_1 = require("../../MablStepV2");
5
5
  const FindAction_1 = require("../../actions/FindAction");
6
6
  const stepUtil_1 = require("./stepUtil");
7
7
  const MablAction_1 = require("../../MablAction");
8
+ const MablSymbol_1 = require("../../MablSymbol");
8
9
  const STEP_NAME = 'EnterText';
9
10
  class EnterTextStep extends MablStepV2_1.MablStepV2 {
10
11
  constructor(descriptor) {
@@ -20,7 +21,9 @@ class EnterTextStep extends MablStepV2_1.MablStepV2 {
20
21
  if ((0, stepUtil_1.isPasswordField)(this.descriptor.find)) {
21
22
  return (0, stepUtil_1.getDescriptionForMobileStepDescriptor)(`Enter password in`, this.descriptor);
22
23
  }
23
- return (0, stepUtil_1.getDescriptionForMobileStepDescriptor)(`Enter text "${this.descriptor.text}" in`, this.descriptor);
24
+ return (0, stepUtil_1.getDescriptionForMobileStepDescriptor)(`Enter text "${(0, MablSymbol_1.isMablSymbolObject)(this.descriptor.text)
25
+ ? (0, MablSymbol_1.formatSymbol)(this.descriptor.text)
26
+ : this.descriptor.text}" in`, this.descriptor);
24
27
  }
25
28
  static fromYaml(_stepName, stepDescriptor) {
26
29
  if (!stepDescriptor.find &&
@@ -3,13 +3,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadRawStepIntoMablStep = exports.parseAndValidateYamlConversion = void 0;
4
4
  const js_yaml_1 = require("js-yaml");
5
5
  const importer_1 = require("../../importer");
6
- function parseAndValidateYamlConversion(steps, expectedStepName, expectedDescriptor) {
6
+ function parseAndValidateYamlConversion(steps, expectedStepName, expectedDescriptor, expectedStepDescription) {
7
7
  const yamlfiedSteps = (0, js_yaml_1.dump)(steps);
8
8
  const loadedSteps = (0, importer_1.loadYamlSteps)(yamlfiedSteps, true);
9
9
  expect(loadedSteps[0].name).toEqual(expectedStepName);
10
10
  expect(loadedSteps[0].descriptor).toEqual(expectedDescriptor);
11
- const yamlfied = (0, importer_1.yamlifyTheLoadedSteps)(loadedSteps);
12
- expect(yamlfied).toEqual(yamlfiedSteps);
11
+ const yamlfiedLoadedSteps = (0, importer_1.yamlifyTheLoadedSteps)(loadedSteps);
12
+ const reLoadedYamlfiedLoadedSteps = (0, js_yaml_1.load)(yamlfiedLoadedSteps);
13
+ const step = reLoadedYamlfiedLoadedSteps[0][expectedStepName];
14
+ expect(step.description).not.toBeUndefined();
15
+ expect(step.description).not.toBeNull();
16
+ expect(step.description).not.toEqual('');
17
+ if (expectedStepDescription !== undefined) {
18
+ expect(step.description).toEqual(expectedStepDescription);
19
+ }
20
+ delete step.description;
21
+ const reYamlfiedLoadedSteps = (0, js_yaml_1.dump)(reLoadedYamlfiedLoadedSteps);
22
+ expect(reYamlfiedLoadedSteps).toEqual(yamlfiedSteps);
13
23
  }
14
24
  exports.parseAndValidateYamlConversion = parseAndValidateYamlConversion;
15
25
  function loadRawStepIntoMablStep(step) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mablhq/mabl-cli",
3
- "version": "2.51.4",
3
+ "version": "2.51.12",
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.48.1",
80
- "playwright-core": "1.48.1",
79
+ "playwright": "1.49.0",
80
+ "playwright-core": "1.49.0",
81
81
  "pluralize": "8.0.0",
82
82
  "pngjs": "6.0.0",
83
83
  "portfinder": "1.0.28",