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) {
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 (
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments