File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ const validate = (bsConfig, args) => {
9898
9999 if ( ! bsConfig . run_settings ) reject ( Constants . validationMessages . EMPTY_RUN_SETTINGS ) ;
100100
101- if ( ! bsConfig . run_settings . cypress_proj_dir ) reject ( Constants . validationMessages . EMPTY_SPEC_FILES ) ;
101+ if ( ! bsConfig . run_settings . cypress_proj_dir ) reject ( Constants . validationMessages . EMPTY_CYPRESS_PROJ_DIR ) ;
102102
103103 // validate parallels specified in browserstack.json if parallels are not specified via arguments
104104 if ( ! Utils . isUndefined ( args ) && Utils . isUndefined ( args . parallels ) && ! Utils . isParallelValid ( bsConfig . run_settings . parallels ) ) reject ( Constants . validationMessages . INVALID_PARALLELS_CONFIGURATION ) ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const validationMessages = {
2323 EMPTY_TEST_SUITE : "Test suite is empty" ,
2424 EMPTY_BROWSERSTACK_JSON : "Empty browserstack.json" ,
2525 EMPTY_RUN_SETTINGS : "Empty run settings" ,
26- EMPTY_SPEC_FILES : "No spec files specified in run_settings" ,
26+ EMPTY_CYPRESS_PROJ_DIR : "cypress_proj_dir is not set in run_settings. See https://www.browserstack.com/docs/automate/cypress/sample-tutorial to learn more. " ,
2727 VALIDATED : "browserstack.json file is validated" ,
2828 NOT_VALID : "browerstack.json is not valid" ,
2929 NOT_VALID_JSON : "browerstack.json is not a valid json" ,
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ exports.getErrorCodeFromMsg = (errMsg) => {
3434 case Constants . validationMessages . EMPTY_RUN_SETTINGS :
3535 errorCode = "bstack_json_invalid_no_run_settings" ;
3636 break ;
37- case Constants . validationMessages . EMPTY_SPEC_FILES :
38- errorCode = "bstack_json_invalid_values " ;
37+ case Constants . validationMessages . EMPTY_CYPRESS_PROJ_DIR :
38+ errorCode = "bstack_json_invalid_no_cypress_proj_dir " ;
3939 break ;
4040 case Constants . validationMessages . INVALID_DEFAULT_AUTH_PARAMS :
4141 errorCode = "bstack_json_default_auth_keys" ;
Original file line number Diff line number Diff line change @@ -611,7 +611,7 @@ describe("capabilityHelper.js", () => {
611611 . catch ( ( error ) => {
612612 chai . assert . equal (
613613 error ,
614- Constants . validationMessages . EMPTY_SPEC_FILES
614+ Constants . validationMessages . EMPTY_CYPRESS_PROJ_DIR
615615 ) ;
616616 } ) ;
617617 } ) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ describe("utils", () => {
2525 expect ( utils . getErrorCodeFromMsg ( constant . validationMessages . INCORRECT_AUTH_PARAMS ) ) . to . eq ( "bstack_json_invalid_missing_keys" ) ;
2626 expect ( utils . getErrorCodeFromMsg ( constant . validationMessages . EMPTY_BROWSER_LIST ) ) . to . eq ( "bstack_json_invalid_no_browsers" ) ;
2727 expect ( utils . getErrorCodeFromMsg ( constant . validationMessages . EMPTY_RUN_SETTINGS ) ) . to . eq ( "bstack_json_invalid_no_run_settings" ) ;
28- expect ( utils . getErrorCodeFromMsg ( constant . validationMessages . EMPTY_SPEC_FILES ) ) . to . eq ( "bstack_json_invalid_values " ) ;
28+ expect ( utils . getErrorCodeFromMsg ( constant . validationMessages . EMPTY_CYPRESS_PROJ_DIR ) ) . to . eq ( "bstack_json_invalid_no_cypress_proj_dir " ) ;
2929 expect ( utils . getErrorCodeFromMsg ( constant . validationMessages . INVALID_DEFAULT_AUTH_PARAMS ) ) . to . eq ( "bstack_json_default_auth_keys" ) ;
3030 expect ( utils . getErrorCodeFromMsg ( constant . validationMessages . INVALID_PARALLELS_CONFIGURATION ) ) . to . eq ( "invalid_parallels_specified" ) ;
3131 expect ( utils . getErrorCodeFromMsg ( constant . validationMessages . LOCAL_NOT_SET ) ) . to . eq ( "cypress_json_base_url_no_local" ) ;
You can’t perform that action at this time.
0 commit comments