Skip to content

Commit 998f073

Browse files
Merge pull request #115 from japneetlambdatest/MLE-9037
geo location support
2 parents 1d25b64 + c1d6ac8 commit 998f073

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

commands/utils/set_args.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,12 @@ function sync_args_from_cmd(args) {
268268
} else if (!lt_config["run_settings"]["cypress_settings"]) {
269269
lt_config["run_settings"]["cypress_settings"] = "";
270270
}
271+
//Check for geo location
272+
if ("geo_location" in args) {
273+
lt_config["run_settings"]["geo_location"] = args["geo_location"];
274+
} else if (!lt_config["run_settings"]["geo_location"]) {
275+
lt_config["run_settings"]["geo_location"] = "";
276+
}
271277

272278
//get specs from current directory if specs are not passed in config or cli
273279
if (

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ const argv = require("yargs")
106106
alias: "cypress_settings",
107107
describe: "Pass Cypress Settings",
108108
type: "string",
109+
})
110+
.option("geo", {
111+
alias: "geo_location",
112+
describe: "Pass Geo Country Code",
113+
type: "string",
109114
});
110115
},
111116
function (argv) {

0 commit comments

Comments
 (0)