@mablhq/mabl-cli 1.25.5 → 1.26.0

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 (59) hide show
  1. package/Globals.js +20 -0
  2. package/api/entities/Browser.js +1 -0
  3. package/api/featureSet.js +6 -2
  4. package/api/mablApiClient.js +10 -2
  5. package/browserLauncher/browserLauncherFactory.js +3 -3
  6. package/browserLauncher/playwrightBrowserLauncher/playwrightBrowser.js +2 -2
  7. package/browserLauncher/playwrightBrowserLauncher/playwrightBrowserLauncher.js +13 -1
  8. package/browserLauncher/playwrightBrowserLauncher/playwrightDom.js +18 -0
  9. package/browserLauncher/types.js +5 -1
  10. package/commands/browserTypes.js +19 -8
  11. package/commands/constants.js +6 -5
  12. package/commands/environments/environments_cmds/create.js +3 -0
  13. package/commands/tests/testsUtil.js +68 -85
  14. package/commands/tests/tests_cmds/run-cloud.js +2 -2
  15. package/commands/tests/tests_cmds/run.js +2 -0
  16. package/domUtil/index.js +1 -2
  17. package/execution/index.js +1 -1
  18. package/execution/index.js.LICENSE.txt +6 -0
  19. package/index.d.ts +2 -0
  20. package/mablApi/index.js +1 -1
  21. package/mablscript/MablAction.js +31 -1
  22. package/mablscript/actions/ConditionAction.js +4 -0
  23. package/mablscript/actions/FindAction.js +3 -0
  24. package/mablscript/actions/GenerateRandomStringAction.js +3 -0
  25. package/mablscript/actions/GetVariableValue.js +3 -0
  26. package/mablscript/actions/JavaScriptAction.js +7 -0
  27. package/mablscript/diffing/diffingUtil.js +81 -16
  28. package/mablscript/importer.js +10 -3
  29. package/mablscript/steps/AssertStep.js +10 -0
  30. package/mablscript/steps/ClickAndHoldStep.js +3 -0
  31. package/mablscript/steps/ClickStep.js +3 -0
  32. package/mablscript/steps/CreateVariableStep.js +6 -0
  33. package/mablscript/steps/DoubleClickStep.js +3 -0
  34. package/mablscript/steps/DownloadStep.js +4 -0
  35. package/mablscript/steps/EchoStep.js +3 -0
  36. package/mablscript/steps/EnterTextStep.js +6 -0
  37. package/mablscript/steps/EvaluateFlowStep.js +8 -3
  38. package/mablscript/steps/EvaluateJavaScriptStep.js +3 -0
  39. package/mablscript/steps/HoverStep.js +3 -0
  40. package/mablscript/steps/IfConditionStep.js +9 -0
  41. package/mablscript/steps/OpenEmailStep.js +3 -0
  42. package/mablscript/steps/ReleaseStep.js +3 -0
  43. package/mablscript/steps/RemoveCookieStep.js +4 -0
  44. package/mablscript/steps/SelectStep.js +7 -0
  45. package/mablscript/steps/SendHttpRequestStep.js +8 -0
  46. package/mablscript/steps/SendKeyStep.js +3 -0
  47. package/mablscript/steps/SetCookieStep.js +7 -0
  48. package/mablscript/steps/SetFilesStep.js +3 -0
  49. package/mablscript/steps/SwitchContextStep.js +4 -0
  50. package/mablscript/steps/VisitUrlStep.js +4 -0
  51. package/mablscript/steps/WaitUntilStep.js +3 -0
  52. package/mablscriptFind/index.js +1 -1
  53. package/package.json +8 -7
  54. package/reporters/__tests__/resources/sampleData.js +5 -0
  55. package/resources/mablFind.js +1 -1
  56. package/util/asyncUtil.js +7 -6
  57. package/browserLauncher/runnerType.js +0 -7
  58. package/domUtil/index.js.LICENSE.txt +0 -14
  59. package/mablscript/AttributesConstants.js +0 -115
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mablhq/mabl-cli",
3
- "version": "1.25.5",
3
+ "version": "1.26.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "The official mabl command line interface tool",
6
6
  "main": "index.js",
@@ -40,7 +40,7 @@
40
40
  "cd": "0.3.3",
41
41
  "chalk": "2.4.2",
42
42
  "change-case": "4.1.1",
43
- "chrome-launcher": "0.13.3",
43
+ "chrome-launcher": "0.14.2",
44
44
  "cli-table3": "0.6.1",
45
45
  "conf": "7.1.2",
46
46
  "decompress-zip": "0.2.2",
@@ -62,7 +62,8 @@
62
62
  "lodash.get": "4.4.2",
63
63
  "markdown-table": "2.0.0",
64
64
  "mime-types": "2.1.27",
65
- "mochawesome-report-generator": "5.2.0",
65
+ "minimist": "1.2.6",
66
+ "mochawesome-report-generator": "6.2.0",
66
67
  "moment": "2.29.3",
67
68
  "newman": "5.3.2",
68
69
  "open": "6.4.0",
@@ -70,8 +71,8 @@
70
71
  "playwright-core": "1.22.2",
71
72
  "pluralize": "8.0.0",
72
73
  "pngjs": "6.0.0",
73
- "portfinder": "1.0.26",
74
- "postman-collection": "4.1.3",
74
+ "portfinder": "1.0.28",
75
+ "postman-collection": "4.1.4",
75
76
  "query-string": "6.13.1",
76
77
  "range_check": "2.0.4",
77
78
  "retry": "0.13.1",
@@ -83,10 +84,10 @@
83
84
  "tmp-promise": "3.0.2",
84
85
  "tough-cookie": "4.0.0",
85
86
  "triple-beam": "1.3.0",
86
- "update-notifier": "5.0.1",
87
+ "update-notifier": "5.1.0",
87
88
  "uuid": "7.0.3",
88
89
  "v8-compile-cache": "2.1.1",
89
- "winston": "3.3.3",
90
+ "winston": "3.7.2",
90
91
  "winston-transport": "4.4.0",
91
92
  "y18n": "4.0.1",
92
93
  "yargonaut": "1.1.4",
@@ -12,6 +12,7 @@ exports.sampleTestResult = {
12
12
  totalTimeSeconds: 268.253,
13
13
  testResults: [
14
14
  {
15
+ functionallyCompleted: false,
15
16
  status: execution_1.TestResultStatus.skipped,
16
17
  errorMessage: 'Test is not currently enabled',
17
18
  testId: 'jW60MgcXnf0qbw90AiXe1g-j:1',
@@ -20,6 +21,7 @@ exports.sampleTestResult = {
20
21
  endTime: 1627580108956,
21
22
  },
22
23
  {
24
+ functionallyCompleted: true,
23
25
  status: execution_1.TestResultStatus.passed,
24
26
  testId: 'fb60BEqZa3kXZy1Gj0hAsA-j:4',
25
27
  testName: 'EX-001 - Click and Double Click',
@@ -28,6 +30,7 @@ exports.sampleTestResult = {
28
30
  endTime: 1627580114195,
29
31
  },
30
32
  {
33
+ functionallyCompleted: false,
31
34
  status: execution_1.TestResultStatus.failed,
32
35
  testId: 'WvpAcSKyT2Sh5Rp817Saiw-j:0',
33
36
  testName: 'EX-002 - Assert presence',
@@ -36,6 +39,7 @@ exports.sampleTestResult = {
36
39
  endTime: 1627580116478,
37
40
  },
38
41
  {
42
+ functionallyCompleted: true,
39
43
  status: execution_1.TestResultStatus.passed,
40
44
  testId: 'PgRXOjMkUcqqLiRRLZVZMA-j:2',
41
45
  testName: 'EX-056 Enter text on HTML5 input types',
@@ -44,6 +48,7 @@ exports.sampleTestResult = {
44
48
  endTime: 1627580372959,
45
49
  },
46
50
  {
51
+ functionallyCompleted: true,
47
52
  status: execution_1.TestResultStatus.passed,
48
53
  testId: 'gGxPiAi2XfJQuqSYc30xGA-j:0',
49
54
  testName: 'EX-058 Enter text into non-text input',