Skip to content

Commit cd9f8c2

Browse files
Merge pull request #138 from LambdaTest/dev
2.4.7
2 parents b01d963 + 1d830eb commit cd9f8c2

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

commands/utils/validate.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,27 @@ module.exports = validate_config = function (lt_config, validation_configs) {
243243
) {
244244
reject("Type of stop_on_failure flag is not bool");
245245
}
246+
247+
//Check for browsers and platforms
248+
let browsers = validation_configs.supportedBrowserAlias;
249+
let platforms = validation_configs.supportedPlatformAlias;
250+
for (let i = 0; i < lt_config.browsers.length; i++) {
251+
if (browsers.indexOf(lt_config.browsers[i].browser.toLowerCase()) == -1) {
252+
reject(
253+
"Browser not supported!!! Please pass from following list: " +
254+
validation_configs.supportedBrowsers
255+
);
256+
}
257+
if (
258+
platforms.indexOf(lt_config.browsers[i].platform.toLowerCase()) == -1
259+
) {
260+
reject(
261+
"Platform not supported!!! Please pass from following list: " +
262+
validation_configs.supportedPlatforms
263+
);
264+
}
265+
}
266+
246267
resolve("Validated the Config");
247268
});
248269
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lambdatest-cypress-cli",
3-
"version": "2.4.6",
3+
"version": "2.4.7",
44
"description": "The lambdatest-cypress-cli is LambdaTest's command-line interface (CLI) aimed to help you run your Cypress tests on LambdaTest platform.",
55
"homepage": "https://github.com/LambdaTest/lambdatest-cypress-cli",
66
"author": "LambdaTest <[email protected]>",

0 commit comments

Comments
 (0)