Skip to content

Commit 983ece2

Browse files
Merge pull request #443 from LambdaTest/dev
Dev
2 parents 302678e + 4f7a259 commit 983ece2

File tree

8 files changed

+31
-10
lines changed

8 files changed

+31
-10
lines changed

commands/utils/constants.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ module.exports = {
130130
},
131131
FeatureFlagURL:{
132132
stage:"https://api-stage-hyperexecute.lambdatestinternal.com/sentinel/v1.0/featureflags",
133-
prod:"https://api-hyperexecute.lambdatest.com/sentinel/v1.0/featureflags"
133+
prod:"https://api-hyperexecute.lambdatest.com/sentinel/v1.0/featureflags",
134+
beta:"https://api-stage-hyperexecute.lambdatestinternal.com/sentinel/v1.0/featureflags"
134135
},
135136
JobStatus_URL:{
136137
stage:"https://api-stage-hyperexecute.lambdatestinternal.com/sentinel/v1.0/job/",

commands/utils/default_config_10.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module.exports = {
2222
specs: "<path_of_cypress_spec_files>",
2323
ignore_files: "",
2424
network: false,
25+
video: true,
2526
headless: false,
2627
npm_dependencies: {
2728
cypress: "10.5.0",

commands/utils/default_config_9.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module.exports = {
2323
specs: "<path_of_cypress_spec_files>",
2424
ignore_files: "",
2525
network: false,
26+
video: true,
2627
headless: false,
2728
npm_dependencies: {
2829
cypress: "9.6.0",

commands/utils/set_args.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,12 @@ function sync_args_from_cmd(args) {
363363
lt_config["run_settings"]["network"] = false;
364364
}
365365

366+
if ("video" in args) {
367+
lt_config["run_settings"]["video"] = args["video"] == "true";
368+
} else if (lt_config["run_settings"]["video"] === undefined) {
369+
lt_config["run_settings"]["video"] = true;
370+
}
371+
366372
if ("network_http2" in args) {
367373
if (args["network_http2"] == "true") {
368374
lt_config.run_settings.network_http2 = true;

commands/utils/validate.js

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,13 @@ module.exports = validate_config = function (lt_config, validation_configs) {
191191
}
192192
}
193193

194+
//validate if video field contains expected value
195+
if ("video" in lt_config["run_settings"]) {
196+
if (![true, false].includes(lt_config["run_settings"]["video"])) {
197+
reject("Error!! boolean value is expected in video key");
198+
}
199+
}
200+
194201
//validate if network_http2 field contains expected value
195202
if ("network_http2" in lt_config["run_settings"]) {
196203
if (![true, false].includes(lt_config["run_settings"]["network_http2"])) {
@@ -354,11 +361,11 @@ module.exports = validate_config = function (lt_config, validation_configs) {
354361
}
355362

356363
//Validate Build Tags
357-
//1) less than 5
364+
//1) less than 15
358365
//2) each tag should be less than 50 characters
359366
if (lt_config.run_settings.build_tags) {
360-
if (lt_config.run_settings.build_tags.length > 5) {
361-
reject("Build Tags can not be more than 5");
367+
if (lt_config.run_settings.build_tags.length > 15) {
368+
reject("Build Tags can not be more than 15");
362369
}
363370
for (let i = 0; i < lt_config.run_settings.build_tags.length; i++) {
364371
if (lt_config.run_settings.build_tags[i].length > 50) {
@@ -367,11 +374,11 @@ module.exports = validate_config = function (lt_config, validation_configs) {
367374
}
368375
}
369376
//Validate Test Tags
370-
//1) less than 6
377+
//1) less than 15
371378
//2) each tag should be less than 50 characters
372379
if (lt_config.run_settings.tags) {
373-
if (lt_config.run_settings.tags.length > 6) {
374-
reject("Test Tags can not be more than 6");
380+
if (lt_config.run_settings.tags.length > 15) {
381+
reject("Test Tags can not be more than 15")
375382
}
376383
for (let i = 0; i < lt_config.run_settings.tags.length; i++) {
377384
if (lt_config.run_settings.tags[i].length > 50) {

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ const argv = require("yargs")
122122
describe: "Capture Network logs",
123123
type: "string",
124124
})
125+
.option("video", {
126+
alias: "video",
127+
describe: "Capture video recording",
128+
type: "string",
129+
})
125130
.option("fullHar", {
126131
alias: "fullHar",
127132
describe: "Capture Full Har Network logs",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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": "3.0.41",
3+
"version": "3.0.42",
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)