@mablhq/mabl-cli 2.52.5 → 2.53.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.
- package/commands/tests/tests_cmds/import_cmds/import_playwright.js +37 -21
- package/commands/tests/tests_cmds/run.js +1 -0
- package/execution/index.js +2 -2
- package/mablscript/MablStepWithFindAction.js +11 -0
- package/mablscript/steps/ClickAndHoldStep.js +2 -2
- package/mablscript/steps/ClickStep.js +2 -2
- package/mablscript/steps/DoubleClickStep.js +2 -2
- package/mablscript/steps/EnterAuthCodeStep.js +2 -2
- package/mablscript/steps/EnterTextStep.js +2 -2
- package/mablscript/steps/HoverStep.js +2 -2
- package/mablscript/steps/OpenEmailStep.js +2 -2
- package/mablscript/steps/ReleaseStep.js +2 -2
- package/mablscript/steps/RightClickStep.js +2 -2
- package/mablscript/steps/SelectStep.js +2 -2
- package/mablscript/steps/SendKeyStep.js +2 -2
- package/mablscript/steps/SetFilesStep.js +2 -2
- package/mablscript/steps/WaitUntilStep.js +2 -2
- package/package.json +2 -2
- package/proxy/index.js +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isStepWithFindAction = exports.MablStepWithFindAction = void 0;
|
|
4
|
+
const MablStep_1 = require("./MablStep");
|
|
5
|
+
class MablStepWithFindAction extends MablStep_1.MablStep {
|
|
6
|
+
}
|
|
7
|
+
exports.MablStepWithFindAction = MablStepWithFindAction;
|
|
8
|
+
function isStepWithFindAction(step) {
|
|
9
|
+
return step instanceof MablStepWithFindAction || 'findAction' in step;
|
|
10
|
+
}
|
|
11
|
+
exports.isStepWithFindAction = isStepWithFindAction;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ClickAndHoldStep = void 0;
|
|
4
4
|
const FindAction_1 = require("../actions/FindAction");
|
|
5
|
-
const MablStep_1 = require("../MablStep");
|
|
6
5
|
const domUtil_1 = require("../../domUtil");
|
|
7
6
|
const ActionsUtils_1 = require("./ActionsUtils");
|
|
8
|
-
|
|
7
|
+
const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
|
|
8
|
+
class ClickAndHoldStep extends MablStepWithFindAction_1.MablStepWithFindAction {
|
|
9
9
|
constructor(name, args, actions) {
|
|
10
10
|
var _a;
|
|
11
11
|
super(name, args, actions, 'click_and_hold');
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ClickStep = void 0;
|
|
4
4
|
const FindAction_1 = require("../actions/FindAction");
|
|
5
|
-
const MablStep_1 = require("../MablStep");
|
|
6
5
|
const domUtil_1 = require("../../domUtil");
|
|
7
6
|
const ActionsUtils_1 = require("./ActionsUtils");
|
|
8
|
-
|
|
7
|
+
const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
|
|
8
|
+
class ClickStep extends MablStepWithFindAction_1.MablStepWithFindAction {
|
|
9
9
|
constructor(name, args, actions) {
|
|
10
10
|
super(name, args, actions, 'click');
|
|
11
11
|
this.findAction = ActionsUtils_1.ActionsUtils.validateSingleFindAction(this.actions);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DoubleClickStep = void 0;
|
|
4
|
-
const MablStep_1 = require("../MablStep");
|
|
5
4
|
const FindAction_1 = require("../actions/FindAction");
|
|
6
5
|
const domUtil_1 = require("../../domUtil");
|
|
7
|
-
|
|
6
|
+
const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
|
|
7
|
+
class DoubleClickStep extends MablStepWithFindAction_1.MablStepWithFindAction {
|
|
8
8
|
constructor(name, args, actions) {
|
|
9
9
|
super(name, args, actions, 'double_click');
|
|
10
10
|
this.validate();
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EnterAuthCodeStep = void 0;
|
|
4
4
|
const FindAction_1 = require("../actions/FindAction");
|
|
5
|
-
const MablStep_1 = require("../MablStep");
|
|
6
5
|
const domUtil_1 = require("../../domUtil");
|
|
7
6
|
const ActionsUtils_1 = require("./ActionsUtils");
|
|
8
|
-
|
|
7
|
+
const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
|
|
8
|
+
class EnterAuthCodeStep extends MablStepWithFindAction_1.MablStepWithFindAction {
|
|
9
9
|
constructor(name, args, actions) {
|
|
10
10
|
super(name, args, actions, EnterAuthCodeStep.stepName);
|
|
11
11
|
this.findAction = ActionsUtils_1.ActionsUtils.validateSingleFindAction(this.actions);
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EnterTextStep = void 0;
|
|
4
4
|
const FindAction_1 = require("../actions/FindAction");
|
|
5
5
|
const MablAction_1 = require("../MablAction");
|
|
6
|
-
const MablStep_1 = require("../MablStep");
|
|
7
6
|
const domUtil_1 = require("../../domUtil");
|
|
8
|
-
|
|
7
|
+
const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
|
|
8
|
+
class EnterTextStep extends MablStepWithFindAction_1.MablStepWithFindAction {
|
|
9
9
|
constructor(name, args, actions) {
|
|
10
10
|
super(name, args, actions, 'enter_text');
|
|
11
11
|
const arg = this.getActionArgs()[0];
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.HoverStep = void 0;
|
|
4
4
|
const FindAction_1 = require("../actions/FindAction");
|
|
5
|
-
const MablStep_1 = require("../MablStep");
|
|
6
5
|
const domUtil_1 = require("../../domUtil");
|
|
7
|
-
|
|
6
|
+
const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
|
|
7
|
+
class HoverStep extends MablStepWithFindAction_1.MablStepWithFindAction {
|
|
8
8
|
constructor(name, args, actions) {
|
|
9
9
|
super(name, args, actions, 'hover');
|
|
10
10
|
this.validate();
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OpenEmailStep = void 0;
|
|
4
4
|
const FindAction_1 = require("../actions/FindAction");
|
|
5
|
-
const
|
|
6
|
-
class OpenEmailStep extends
|
|
5
|
+
const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
|
|
6
|
+
class OpenEmailStep extends MablStepWithFindAction_1.MablStepWithFindAction {
|
|
7
7
|
constructor(name, args, actions) {
|
|
8
8
|
super(name, args, actions, OpenEmailStep.stepName);
|
|
9
9
|
this.tabUuid = this.getActionArgs()[0] || {};
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ReleaseStep = void 0;
|
|
4
4
|
const FindAction_1 = require("../actions/FindAction");
|
|
5
|
-
const MablStep_1 = require("../MablStep");
|
|
6
5
|
const MablAction_1 = require("../MablAction");
|
|
7
6
|
const domUtil_1 = require("../../domUtil");
|
|
8
7
|
const ActionsUtils_1 = require("./ActionsUtils");
|
|
9
8
|
const ReleaseStepDescriptor_1 = require("../types/ReleaseStepDescriptor");
|
|
10
|
-
|
|
9
|
+
const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
|
|
10
|
+
class ReleaseStep extends MablStepWithFindAction_1.MablStepWithFindAction {
|
|
11
11
|
constructor(name, args, actions) {
|
|
12
12
|
var _a;
|
|
13
13
|
super(name, args, actions, 'release');
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RightClickStep = void 0;
|
|
4
4
|
const FindAction_1 = require("../actions/FindAction");
|
|
5
|
-
const MablStep_1 = require("../MablStep");
|
|
6
5
|
const domUtil_1 = require("../../domUtil");
|
|
7
6
|
const ActionsUtils_1 = require("./ActionsUtils");
|
|
8
|
-
|
|
7
|
+
const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
|
|
8
|
+
class RightClickStep extends MablStepWithFindAction_1.MablStepWithFindAction {
|
|
9
9
|
constructor(name, args, actions) {
|
|
10
10
|
super(name, args, actions, 'right_click');
|
|
11
11
|
this.findAction = ActionsUtils_1.ActionsUtils.validateSingleFindAction(this.actions);
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SelectStep = void 0;
|
|
4
4
|
const FindAction_1 = require("../actions/FindAction");
|
|
5
5
|
const MablAction_1 = require("../MablAction");
|
|
6
|
-
const MablStep_1 = require("../MablStep");
|
|
7
6
|
const domUtil_1 = require("../../domUtil");
|
|
8
|
-
|
|
7
|
+
const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
|
|
8
|
+
class SelectStep extends MablStepWithFindAction_1.MablStepWithFindAction {
|
|
9
9
|
constructor(name, args, actions) {
|
|
10
10
|
super(name, args, actions, 'select');
|
|
11
11
|
this.selectOptions = this.getActionArgs()[0];
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SendKeyStep = void 0;
|
|
4
4
|
const FindAction_1 = require("../actions/FindAction");
|
|
5
|
-
const MablStep_1 = require("../MablStep");
|
|
6
5
|
const domUtil_1 = require("../../domUtil");
|
|
7
6
|
const SendKeyStepDescriptor_1 = require("../types/SendKeyStepDescriptor");
|
|
7
|
+
const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
|
|
8
8
|
const STEP_NAME = 'SendKeys';
|
|
9
|
-
class SendKeyStep extends
|
|
9
|
+
class SendKeyStep extends MablStepWithFindAction_1.MablStepWithFindAction {
|
|
10
10
|
constructor(name, args, actions) {
|
|
11
11
|
super(name, args, actions, 'send_keys');
|
|
12
12
|
if (this.actions.length !== 1 && !(this.actions[0] instanceof FindAction_1.FindAction)) {
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SetFilesStep = void 0;
|
|
4
4
|
const FindAction_1 = require("../actions/FindAction");
|
|
5
5
|
const MablAction_1 = require("../MablAction");
|
|
6
|
-
const MablStep_1 = require("../MablStep");
|
|
7
6
|
const domUtil_1 = require("../../domUtil");
|
|
8
|
-
|
|
7
|
+
const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
|
|
8
|
+
class SetFilesStep extends MablStepWithFindAction_1.MablStepWithFindAction {
|
|
9
9
|
constructor(name, args, actions) {
|
|
10
10
|
super(name, args, actions, 'set_files');
|
|
11
11
|
this.files = this.getActionArgs();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WaitUntilStep = void 0;
|
|
4
|
-
const MablStep_1 = require("../MablStep");
|
|
5
4
|
const domUtil_1 = require("../../domUtil");
|
|
6
|
-
|
|
5
|
+
const MablStepWithFindAction_1 = require("../MablStepWithFindAction");
|
|
6
|
+
class WaitUntilStep extends MablStepWithFindAction_1.MablStepWithFindAction {
|
|
7
7
|
constructor(name, args, actions) {
|
|
8
8
|
super(name, args, actions, 'wait_until');
|
|
9
9
|
if ((0, domUtil_1.isFindElementType)(this.actions[0].getActionName())) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mablhq/mabl-cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.53.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "The official mabl command line interface tool",
|
|
6
6
|
"main": "index.js",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"fastest-levenshtein": "1.0.12",
|
|
57
57
|
"fs-extra": "8.1.0",
|
|
58
58
|
"git-repo-info": "2.1.1",
|
|
59
|
-
"glob": "
|
|
59
|
+
"glob": "11.0.1",
|
|
60
60
|
"hpagent": "1.2.0",
|
|
61
61
|
"humanize-duration": "3.23.0",
|
|
62
62
|
"inquirer": "8.2.5",
|