File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ module.exports = {
2626 npm_dependencies : {
2727 cypress : "10.5.0" ,
2828 } ,
29+ timezone :"" ,
2930 } ,
3031 tunnel_settings : {
3132 tunnel : false ,
Original file line number Diff line number Diff line change @@ -448,6 +448,13 @@ function sync_args_from_cmd(args) {
448448 lt_config [ "run_settings" ] [ "geo_location" ] = "" ;
449449 }
450450
451+ //Check for timezone
452+ if ( "timezone" in args ) {
453+ lt_config [ "run_settings" ] [ "timezone" ] = args [ "timezone" ] ;
454+ } else if ( ! lt_config [ "run_settings" ] [ "timezone" ] ) {
455+ lt_config [ "run_settings" ] [ "timezone" ] = "" ;
456+ }
457+
451458 //Check for stop on failure location
452459 if ( "stop_on_failure" in args ) {
453460 lt_config [ "run_settings" ] [ "stop_on_failure" ] = true ;
Original file line number Diff line number Diff line change @@ -250,6 +250,11 @@ const argv = require("yargs")
250250 alias : "accessibility" ,
251251 describe : "enable accessibility testing for cypress." ,
252252 type : "bool" ,
253+ } )
254+ . option ( "timezone" , {
255+ alias : "tz" ,
256+ describe : "Set custom timezone in machine for cypress." ,
257+ type : "string" ,
253258 } ) ;
254259 } ,
255260 function ( argv ) {
You can’t perform that action at this time.
0 commit comments