Skip to content

Commit b15e852

Browse files
authored
Merge pull request #452 from lakshyag-tech/CBT-21487
added enableCFT capability
2 parents 6946af0 + c420dd7 commit b15e852

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

commands/utils/set_args.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,10 @@ function sync_args_from_cmd(args) {
389389
lt_config["run_settings"]["useNode18"] = false;
390390
}
391391

392+
if ("useNodeVersion" in args) {
393+
lt_config.run_settings.useNodeVersion = args["useNodeVersion"];
394+
}
395+
392396
if ("accessibility" in args) {
393397
if (args["accessibility"] == "true") {
394398
lt_config.run_settings.accessibility = true;
@@ -478,6 +482,14 @@ function sync_args_from_cmd(args) {
478482
lt_config["run_settings"]["privateCloud"] = false ;
479483
}
480484

485+
if ("enableCFT" in args) {
486+
if (args["enableCFT"] == "true") {
487+
lt_config.run_settings.enableCFT = true;
488+
} else {
489+
lt_config.run_settings.enableCFT = false;
490+
}
491+
}
492+
481493
//Check for stop on failure location
482494
if ("stop_on_failure" in args) {
483495
lt_config["run_settings"]["stop_on_failure"] = true;

index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,11 @@ const argv = require("yargs")
246246
describe: "Use node version 18 for cypress",
247247
type: "bool",
248248
})
249+
.option("nodeV", {
250+
alias: "useNodeVersion",
251+
describe: "Specify Node.js version for Cypress runtime",
252+
type: "string",
253+
})
249254
.option("net_sse", {
250255
alias: "network_sse",
251256
describe: "Bypass sse events calls for Network logs",
@@ -270,6 +275,11 @@ const argv = require("yargs")
270275
alias: "privateCloud",
271276
describe: "Set custom private Cloud",
272277
type: "bool",
278+
})
279+
.option("enableCFT", {
280+
alias: "enableCFT",
281+
describe: "Enable Chrome for Testing feature flag",
282+
type: "bool",
273283
});
274284
},
275285
function (argv) {

0 commit comments

Comments
 (0)