Skip to content

Commit 970bb82

Browse files
author
Archish Thakkar
authored
Merge pull request #585 from browserstack/timezone_support
❇️ added timezone support
2 parents 425f260 + 3cc7871 commit 970bb82

File tree

5 files changed

+1846
-0
lines changed

5 files changed

+1846
-0
lines changed

bin/commands/runs.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ module.exports = function run(args, rawArgs) {
6969
// set cypress geo location
7070
utils.setGeolocation(bsConfig, args);
7171

72+
// set timezone
73+
utils.setTimezone(bsConfig, args);
74+
7275
// set spec timeout
7376
utils.setSpecTimeout(bsConfig, args);
7477

bin/helpers/constants.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ const userMessages = {
8585
"Your build will run using Cypress <actualVersion> instead of Cypress <preferredVersion>.<frameworkUpgradeMessage> Read more about supported versions here: http://browserstack.com/docs/automate/cypress/supported-versions",
8686
LOCAL_START_FAILED: "Local Testing setup failed.",
8787
LOCAL_STOP_FAILED: "Local Binary stop failed.",
88+
INVALID_TIMEZONE:
89+
'The timezone specified is invalid. Refer to our documentation page https://www.browserstack.com/docs/automate/cypress/configure-timezones for the supported time zones.',
8890
INVALID_LOCAL_MODE_WARNING:
8991
'Invalid value specified for local_mode. local_mode: ("always-on" | "on-demand"). For more info, check out https://www.browserstack.com/docs/automate/cypress/cli-reference',
9092
LOCAL_BINARY_ALREADY_RUNNING:

0 commit comments

Comments
 (0)