diff --git a/bin/commands/runs.js b/bin/commands/runs.js index 18d64936..4c708201 100644 --- a/bin/commands/runs.js +++ b/bin/commands/runs.js @@ -67,7 +67,7 @@ module.exports = function run(args, rawArgs) { // set cypress geo location utils.setGeolocation(bsConfig, args); - // set spec timeout + // set spec timeout utils.setSpecTimeout(bsConfig, args); // accept the specs list from command line if provided @@ -390,8 +390,8 @@ module.exports = function run(args, rawArgs) { updateCheckInterval: 1000 * 60 * 60 * 24 * 7, }); - // Checks for update on first run. - // Set lastUpdateCheck to 0 to spawn the check update process as notifier sets this to Date.now() for preventing + // Checks for update on first run. + // Set lastUpdateCheck to 0 to spawn the check update process as notifier sets this to Date.now() for preventing // the check untill one interval period. It runs once. if (!notifier.disabled && Date.now() - notifier.config.get('lastUpdateCheck') < 50) { notifier.config.set('lastUpdateCheck', 0); diff --git a/bin/helpers/getInitialDetails.js b/bin/helpers/getInitialDetails.js index cb416c3a..30d3114b 100644 --- a/bin/helpers/getInitialDetails.js +++ b/bin/helpers/getInitialDetails.js @@ -33,6 +33,9 @@ exports.getInitialDetails = (bsConfig, args, rawArgs) => { utils.sendUsageReport(bsConfig, args, responseData["error"], Constants.messageTypes.ERROR, 'get_initial_details_failed', null, rawArgs); resolve({}); } else { + if (!utils.isUndefined(responseData.grr) && responseData.grr.enabled && !utils.isUndefined(responseData.grr.urls)) { + config.uploadUrl = responseData.grr.urls.upload_url; + } resolve(responseData); } }