Skip to content

Commit 951b743

Browse files
amankansal-ltclaude
andcommitted
test(provider-webdriver): assert the code of a verification transport failure
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent bb4055d commit 951b743

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎packages/provider-webdriver/src/connection-verification.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ test('BrowserStack points HTTP failures at its service status and transport fail
102102
}),
103103
);
104104
await assert.rejects(createProvider().verifyConnection(browserStackOptions), (error: unknown) => {
105+
assert.equal((error as { code?: string }).code, 'COMMAND_FAILED');
105106
assert.equal(
106107
(error as { details?: { hint?: string } }).details?.hint,
107108
'Check network access to api-cloud.browserstack.com and retry connect.',

0 commit comments

Comments
 (0)