Skip to content

Commit 81f199c

Browse files
committed
upd
1 parent 4a2d36e commit 81f199c

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

scripts/run-browser-tests.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ if (!useLocalBrowser) {
5252
const username = process.env.BROWSERSTACK_USERNAME || process.env.BROWSER_STACK_USERNAME;
5353
const accessKey = process.env.BROWSERSTACK_ACCESS_KEY || process.env.BROWSER_STACK_ACCESS_KEY;
5454

55+
console.log('\n' + '='.repeat(80));
56+
console.log('BrowserStack Credentials Check:');
57+
console.log('='.repeat(80));
58+
console.log(`BROWSERSTACK_USERNAME: ${username ? '✓ Available' : '✗ Not found'}`);
59+
console.log(`BROWSERSTACK_ACCESS_KEY: ${accessKey ? '✓ Available' : '✗ Not found'}`);
60+
console.log('='.repeat(80) + '\n');
61+
5562
if (!username || !accessKey) {
5663
console.log('BrowserStack credentials not found - falling back to local browser mode');
5764
useLocalBrowser = true;

vitest.browser.config.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ function buildLocalCapabilities(browserName: string) {
204204
function buildBrowserStackCapabilities(config: typeof browserConfig) {
205205
return {
206206
browserName: config.browserName,
207+
webSocketUrl: false, // Disable WebDriver Bidi for BrowserStack
207208
// 'goog:chromeOptions': {
208209
// args: [
209210
// '--disable-blink-features=AutomationControlled',
@@ -224,7 +225,6 @@ function buildBrowserStackCapabilities(config: typeof browserConfig) {
224225
consoleLogs: 'verbose' as const,
225226
idleTimeout: 600, // 10 minutes idle timeout,
226227
},
227-
webSocketUrl: true,
228228
};
229229
}
230230

@@ -238,7 +238,7 @@ function buildBrowserInstances() {
238238
logLevel: 'error' as const,
239239
connectionRetryTimeout: 180000, // 3 minutes
240240
connectionRetryCount: 3,
241-
webSocketUrl: true, // Enable WebDriver Bidi
241+
webSocketUrl: false, // Enable WebDriver Bidi
242242
}));
243243
} else {
244244
// BrowserStack remote configurations - all browsers
@@ -253,7 +253,7 @@ function buildBrowserInstances() {
253253
logLevel: 'error' as const,
254254
connectionRetryTimeout: 180000, // 3 minutes
255255
connectionRetryCount: 3,
256-
webSocketUrl: true, // Enable WebDriver Bidi
256+
webSocketUrl: false, // Enable WebDriver Bidi
257257
}));
258258
}
259259
}

0 commit comments

Comments
 (0)