Skip to content

Commit 24deb28

Browse files
committed
add logs, partially to find issue
1 parent d4f1a9d commit 24deb28

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

test/UITest.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,19 @@ declare const browserAPI: browserAPI;
99
const PORT: number = 1250;
1010
//Set to false to test remotely even when running it locally
1111
const 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+
})();
1425
const TEST_EXTENSION = hasSetting('test-extension');
1526
const TIME_MODIFIER = 1.2;
1627
const 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
})();
3648
const REMOTE_PW = (() => {

0 commit comments

Comments
 (0)