Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions commands/utils/set_args.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,19 @@ function sync_args_from_cmd(args) {
lt_config["run_settings"]["geo_location"] = "";
}

//Check for timezone
if ("timezone" in args) {
lt_config["run_settings"]["timezone"] = args["timezone"];
} else if (!lt_config["run_settings"]["timezone"]) {
lt_config["run_settings"]["timezone"] = "";
}

if ("privateCloud" in args) {
lt_config["run_settings"]["privateCloud"] = args["privateCloud"];
}else if (!lt_config["run_settings"]["privateCloud"]) {
lt_config["run_settings"]["privateCloud"] = false ;
}

//Check for stop on failure location
if ("stop_on_failure" in args) {
lt_config["run_settings"]["stop_on_failure"] = true;
Expand Down
6 changes: 6 additions & 0 deletions commands/utils/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,12 @@ module.exports = validate_config = function (lt_config, validation_configs) {
}
}

if ("privateCloud" in lt_config["privateCloud"]) {
if (!(typeof lt_config["run_settings"]["privateCloud"] === "boolean")) {
reject("Error!! boolean value is expected in command_log key");
}
}

if(lt_config)
resolve(cypress_version);
});
Expand Down
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,16 @@ const argv = require("yargs")
alias: "accessibility",
describe: "enable accessibility testing for cypress.",
type: "bool",
})
.option("tz",{
alias: "timezone",
describe: "Set custom timezone in machine for cypress.",
type: "string",
})
.option("pC",{
alias: "privateCloud",
describe: "Set custom private Cloud",
type: "bool",
});
},
function (argv) {
Expand Down