Skip to content

Commit dcdeb61

Browse files
committed
update messages
1 parent 007ae51 commit dcdeb61

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bin/helpers/capabilityHelper.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ const validate = (bsConfig, args) => {
255255
}
256256
}
257257

258-
if (configFilesPresent.length === 0 && bsConfig.run_settings.cypress_config_filename !== 'false') reject(Constants.validationMessages.CYPRESS_CONFIG_FILE_NOT_FOUND)
258+
if (configFilesPresent.length === 0 && bsConfig.run_settings.cypress_config_filename !== 'false') {
259+
reject(Constants.validationMessages.CYPRESS_CONFIG_FILE_NOT_FOUND.replace('<location>', cypressFileDirectory));
260+
}
259261
if (configFilesPresent.length > 1 && bsConfig.run_settings.cypress_config_filename !== 'false') {
260262
logger.warn(`We found the following cypress config files ${configFilesPresent.join(', ')} at this location: ${cypressFileDirectory}`);
261263
reject(Constants.validationMessages.MORE_THAN_ONE_CYPRESS_CONFIG_FILE_FOUND);

bin/helpers/constants.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const validationMessages = {
121121
EMPTY_CYPRESS_PROJ_DIR:
122122
"cypress_proj_dir is not set in run_settings. See https://www.browserstack.com/docs/automate/cypress/sample-tutorial to learn more.",
123123
EMPTY_CYPRESS_CONFIG_FILE:
124-
"cypress_config_file is not set in run_settings. See https://www.browserstack.com/docs/automate/cypress/sample-tutorial to learn more.",
124+
"cypress_config_file is not set in run_settings. See https://www.browserstack.com/docs/automate/cypress/configuration-file to learn more.",
125125
VALIDATED: "browserstack.json file is validated",
126126
NOT_VALID: "browerstack.json is not valid",
127127
NOT_VALID_JSON: "browerstack.json is not a valid json",
@@ -130,7 +130,7 @@ const validationMessages = {
130130
"Invalid value specified for parallels to use. Maximum parallels to use should be a number greater than 0.",
131131
INVALID_CYPRESS_CONFIG_FILE: "Invalid cypress_config_file",
132132
CYPRESS_CONFIG_FILE_NOT_FOUND:
133-
"No cypress config file was found.",
133+
"No cypress config file was found at <location> directory.",
134134
MORE_THAN_ONE_CYPRESS_CONFIG_FILE_FOUND:
135135
"Cypress does not allow more than one cypress config file.",
136136
INVALID_CYPRESS_JSON: "cypress.json is not a valid json",

0 commit comments

Comments
 (0)