File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -268,6 +268,12 @@ function sync_args_from_cmd(args) {
268
268
} else if ( ! lt_config [ "run_settings" ] [ "cypress_settings" ] ) {
269
269
lt_config [ "run_settings" ] [ "cypress_settings" ] = "" ;
270
270
}
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
+ }
271
277
272
278
//get specs from current directory if specs are not passed in config or cli
273
279
if (
Original file line number Diff line number Diff line change @@ -106,6 +106,11 @@ const argv = require("yargs")
106
106
alias : "cypress_settings" ,
107
107
describe : "Pass Cypress Settings" ,
108
108
type : "string" ,
109
+ } )
110
+ . option ( "geo" , {
111
+ alias : "geo_location" ,
112
+ describe : "Pass Geo Country Code" ,
113
+ type : "string" ,
109
114
} ) ;
110
115
} ,
111
116
function ( argv ) {
You can’t perform that action at this time.
0 commit comments