Skip to content

Commit 852a474

Browse files
Merge pull request #100 from japneetlambdatest/MLE-7434
Added validations for smart UI
2 parents 73c951b + 8018633 commit 852a474

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

commands/utils/validate.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,13 @@ module.exports = validate_config = function (lt_config) {
158158
}
159159
}
160160
}
161+
if ("smart_ui" in lt_config.run_settings) {
162+
if (!("project" in lt_config.run_settings.smart_ui)) {
163+
reject("Smart UI project name is missing");
164+
} else if (lt_config.run_settings.smart_ui.project == "") {
165+
reject("Smart UI porject name can not be blank");
166+
}
167+
}
161168
resolve("Validated the Config");
162169
});
163170
};

0 commit comments

Comments
 (0)