File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,8 +9,19 @@ declare const browserAPI: browserAPI;
99const PORT : number = 1250 ;
1010//Set to false to test remotely even when running it locally
1111const TEST_LOCAL_DEFAULT = true ;
12- const TEST_LOCAL : boolean = hasSetting ( 'remote' ) || ! ! process . env . TRAVIS ?
13- false : TEST_LOCAL_DEFAULT ;
12+ const TEST_LOCAL : boolean = ( ( ) => {
13+ if ( hasSetting ( 'remote' ) ) {
14+ console . log ( 'Testing remotely' ) ;
15+ return false ;
16+ }
17+ if ( ! ! process . env . TRAVIS ) {
18+ console . log ( 'Testing remotely' ) ;
19+ return false ;
20+ }
21+ console . log ( TEST_LOCAL_DEFAULT ?
22+ 'Testing locally' : 'Testing remotely' ) ;
23+ return TEST_LOCAL_DEFAULT ;
24+ } ) ( ) ;
1425const TEST_EXTENSION = hasSetting ( 'test-extension' ) ;
1526const TIME_MODIFIER = 1.2 ;
1627const LOCAL_URL = 'http://localhost:9515' ;
@@ -31,6 +42,7 @@ const REMOTE_URL = (async () => {
3142 console . log ( 'Using custom remote URL' ) ;
3243 return process . env . REMOTE_URL ;
3344 }
45+ console . log ( 'Using browserstack remote' ) ;
3446 return 'http://hub-cloud.browserstack.com/wd/hub' ;
3547} ) ( ) ;
3648const REMOTE_PW = ( ( ) => {
You can’t perform that action at this time.
0 commit comments