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 = {
26
26
npm_dependencies : {
27
27
cypress : "10.5.0" ,
28
28
} ,
29
+ timezone :"" ,
29
30
} ,
30
31
tunnel_settings : {
31
32
tunnel : false ,
Original file line number Diff line number Diff line change @@ -448,6 +448,13 @@ function sync_args_from_cmd(args) {
448
448
lt_config [ "run_settings" ] [ "geo_location" ] = "" ;
449
449
}
450
450
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
+
451
458
//Check for stop on failure location
452
459
if ( "stop_on_failure" in args ) {
453
460
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")
250
250
alias : "accessibility" ,
251
251
describe : "enable accessibility testing for cypress." ,
252
252
type : "bool" ,
253
+ } )
254
+ . option ( "timezone" , {
255
+ alias : "tz" ,
256
+ describe : "Set custom timezone in machine for cypress." ,
257
+ type : "string" ,
253
258
} ) ;
254
259
} ,
255
260
function ( argv ) {
You can’t perform that action at this time.
0 commit comments