File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,9 @@ const validate = (bsConfig, args) => {
164164
165165 if ( Utils . searchForOption ( '--async' ) && ( ! Utils . isUndefined ( args . async ) && bsConfig [ "connection_settings" ] [ "local" ] ) ) reject ( Constants . validationMessages . INVALID_LOCAL_ASYNC_ARGS ) ;
166166
167- if ( bsConfig . run_settings . userProvidedGeoLocation && bsConfig . run_settings . geolocation . match ( / ^ [ A - Z ] { 2 } $ / g) ) reject ( Constants . validationMessages . INVALID_GEO_LOCATION ) ;
167+ if ( bsConfig . run_settings . userProvidedGeoLocation && ! bsConfig . run_settings . geolocation . match ( / ^ [ A - Z ] { 2 } $ / g) ) reject ( Constants . validationMessages . INVALID_GEO_LOCATION ) ;
168+
169+ if ( bsConfig [ "connection_settings" ] [ "local" ] && bsConfig . run_settings . userProvidedGeoLocation ) reject ( Constants . validationMessages . INVALID_GEO_LOCATION_AND_LOCAL_MODE ) ;
168170
169171 // validate if config file provided exists or not when cypress_config_file provided
170172 // validate the cypressProjectDir key otherwise.
You can’t perform that action at this time.
0 commit comments