Skip to content

Commit 5513ca6

Browse files
committed
update keys in browserstack.json
1 parent ee3be8e commit 5513ca6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

bin/helpers/capabilityHelper.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,22 @@ const caps = (bsConfig, zip) => {
3535

3636
// Local Identifier
3737
obj.localIdentifier = null;
38-
if (obj.local === true && bsConfig.connection_settings.localIdentifier)
38+
if (obj.local === true && (bsConfig.connection_settings.localIdentifier || bsConfig.connection_settings.local_identifier))
3939
{
40-
obj.localIdentifier = bsConfig.connection_settings.localIdentifier;
40+
obj.localIdentifier = bsConfig.connection_settings.localIdentifier || bsConfig.connection_settings.local_identifier;
4141
logger.log(`Local Identifier is set to: ${obj.localIdentifier}`);
4242
}
4343

4444
// Project name
45-
obj.project = bsConfig.run_settings.project
45+
obj.project = bsConfig.run_settings.project || bsConfig.run_settings.project_name;
4646
if (!obj.project) logger.log(`Project name is: ${obj.project}`);
4747

4848
// Base url
4949
obj.base_url = bsConfig.run_settings.baseUrl
5050
if (obj.base_url) logger.log(`Base url is : ${obj.base_url}`);
5151

5252
// Build name
53-
obj.customBuildName = bsConfig.run_settings.customBuildName
53+
obj.customBuildName = bsConfig.run_settings.customBuildName || bsConfig.run_settings.build_name;
5454
if (obj.customBuildName) logger.log(`Build name is: ${obj.customBuildName}`);
5555

5656
//callback url

bin/templates/configTemplate.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ module.exports = function () {
1313
],
1414
"run_settings": {
1515
"cypress_proj_dir" : "/path/to/cypress.json",
16-
"project": "project-name",
17-
"customBuildName": "build-name"
16+
"project_name": "project-name",
17+
"build_name": "build-name"
1818
},
1919
"connection_settings": {
2020
"local": false,
21-
"localIdentifier": null
21+
"local_identifier": null
2222
}
2323
}
2424
var EOL = require('os').EOL

0 commit comments

Comments
 (0)