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) => {
98
98
99
99
if ( ! bsConfig . run_settings ) reject ( Constants . validationMessages . EMPTY_RUN_SETTINGS ) ;
100
100
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 ) ;
102
102
103
103
// validate parallels specified in browserstack.json if parallels are not specified via arguments
104
104
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 = {
23
23
EMPTY_TEST_SUITE : "Test suite is empty" ,
24
24
EMPTY_BROWSERSTACK_JSON : "Empty browserstack.json" ,
25
25
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. " ,
27
27
VALIDATED : "browserstack.json file is validated" ,
28
28
NOT_VALID : "browerstack.json is not valid" ,
29
29
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) => {
34
34
case Constants . validationMessages . EMPTY_RUN_SETTINGS :
35
35
errorCode = "bstack_json_invalid_no_run_settings" ;
36
36
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 " ;
39
39
break ;
40
40
case Constants . validationMessages . INVALID_DEFAULT_AUTH_PARAMS :
41
41
errorCode = "bstack_json_default_auth_keys" ;
Original file line number Diff line number Diff line change @@ -611,7 +611,7 @@ describe("capabilityHelper.js", () => {
611
611
. catch ( ( error ) => {
612
612
chai . assert . equal (
613
613
error ,
614
- Constants . validationMessages . EMPTY_SPEC_FILES
614
+ Constants . validationMessages . EMPTY_CYPRESS_PROJ_DIR
615
615
) ;
616
616
} ) ;
617
617
} ) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ describe("utils", () => {
25
25
expect ( utils . getErrorCodeFromMsg ( constant . validationMessages . INCORRECT_AUTH_PARAMS ) ) . to . eq ( "bstack_json_invalid_missing_keys" ) ;
26
26
expect ( utils . getErrorCodeFromMsg ( constant . validationMessages . EMPTY_BROWSER_LIST ) ) . to . eq ( "bstack_json_invalid_no_browsers" ) ;
27
27
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 " ) ;
29
29
expect ( utils . getErrorCodeFromMsg ( constant . validationMessages . INVALID_DEFAULT_AUTH_PARAMS ) ) . to . eq ( "bstack_json_default_auth_keys" ) ;
30
30
expect ( utils . getErrorCodeFromMsg ( constant . validationMessages . INVALID_PARALLELS_CONFIGURATION ) ) . to . eq ( "invalid_parallels_specified" ) ;
31
31
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