Skip to content

Commit 4c290be

Browse files
Merge pull request #219 from manoj-k04/AIMCP-158-WDIO-Integration
Fix: WDIO integration using MCP
2 parents b90ad76 + 31ac795 commit 4c290be

File tree

9 files changed

+16
-10
lines changed

9 files changed

+16
-10
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@browserstack/mcp-server",
3-
"version": "1.2.10",
3+
"version": "1.2.11",
44
"description": "BrowserStack's Official MCP Server",
55
"mcpName": "io.github.browserstack/mcp-server",
66
"main": "dist/index.js",

server.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
{
1212
"registryType": "npm",
1313
"identifier": "@browserstack/mcp-server",
14-
"version": "1.2.10",
14+
"version": "1.2.11",
1515
"transport": {
1616
"type": "stdio"
1717
},

src/tools/sdk-utils/bstack/constants.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,6 @@ export const SUPPORTED_CONFIGURATIONS: ConfigMapping = {
643643
},
644644
selenium: {
645645
jest: { instructions: nodejsInstructions },
646-
webdriverio: { instructions: webdriverioInstructions },
647646
mocha: { instructions: nodejsInstructions },
648647
cucumber: { instructions: nodejsInstructions },
649648
nightwatch: { instructions: nodejsInstructions },
@@ -652,5 +651,9 @@ export const SUPPORTED_CONFIGURATIONS: ConfigMapping = {
652651
cypress: {
653652
cypress: { instructions: cypressInstructions },
654653
},
654+
webdriverio: {
655+
mocha: { instructions: webdriverioInstructions },
656+
cucumber: { instructions: webdriverioInstructions },
657+
},
655658
},
656659
};

src/tools/sdk-utils/bstack/frameworks.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ export const SUPPORTED_CONFIGURATIONS: ConfigMapping = {
4646
},
4747
selenium: {
4848
jest: { instructions: constants.nodejsInstructions },
49-
webdriverio: { instructions: constants.webdriverioInstructions },
5049
mocha: { instructions: constants.nodejsInstructions },
5150
cucumber: { instructions: constants.nodejsInstructions },
5251
nightwatch: { instructions: constants.nodejsInstructions },
@@ -55,5 +54,9 @@ export const SUPPORTED_CONFIGURATIONS: ConfigMapping = {
5554
cypress: {
5655
cypress: { instructions: constants.cypressInstructions },
5756
},
57+
webdriverio: {
58+
mocha: { instructions: constants.webdriverioInstructions },
59+
cucumber: { instructions: constants.webdriverioInstructions },
60+
},
5861
},
5962
};

src/tools/sdk-utils/bstack/sdkHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export async function runBstackSDKOnly(
5252
// Handle frameworks with unique setup instructions that don't use browserstack.yml
5353
if (
5454
input.detectedBrowserAutomationFramework === "cypress" ||
55-
input.detectedTestingFramework === "webdriverio"
55+
input.detectedBrowserAutomationFramework === "webdriverio"
5656
) {
5757
const frameworkInstructions = getInstructionsForProjectConfiguration(
5858
input.detectedBrowserAutomationFramework as SDKSupportedBrowserAutomationFramework,

src/tools/sdk-utils/common/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export enum SDKSupportedBrowserAutomationFrameworkEnum {
1616
playwright = "playwright",
1717
selenium = "selenium",
1818
cypress = "cypress",
19+
webdriverio = "webdriverio",
1920
}
2021
export type SDKSupportedBrowserAutomationFramework =
2122
keyof typeof SDKSupportedBrowserAutomationFrameworkEnum;
@@ -29,7 +30,6 @@ export enum SDKSupportedTestingFrameworkEnum {
2930
behave = "behave",
3031
cucumber = "cucumber",
3132
nightwatch = "nightwatch",
32-
webdriverio = "webdriverio",
3333
mocha = "mocha",
3434
junit4 = "junit4",
3535
junit5 = "junit5",

src/tools/sdk-utils/common/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export async function formatToolResult(
8080
if (runType != "percy-web") {
8181
finalContent.push({
8282
type: "text",
83-
text: "CRITICAL: After the build is run, you MUST explicitly ask the user if they want to perform RCA (Root Cause Analysis) for any failed tests. This step is mandatory and should not be skipped.",
83+
text: "CRITICAL: After the build is run, you MUST explicitly ask the user if they want to perform RCA (Root Cause Analysis) for any failed tests using the RCA tool. This step is mandatory and should not be skipped.",
8484
});
8585
}
8686

src/tools/sdk-utils/percy-bstack/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function runPercyWithBrowserstackSDK(
5151
// Handle frameworks with unique setup instructions that don't use browserstack.yml
5252
if (
5353
input.detectedBrowserAutomationFramework === "cypress" ||
54-
input.detectedTestingFramework === "webdriverio"
54+
input.detectedBrowserAutomationFramework === "webdriverio"
5555
) {
5656
const frameworkInstructions = getInstructionsForProjectConfiguration(
5757
input.detectedBrowserAutomationFramework as SDKSupportedBrowserAutomationFramework,

0 commit comments

Comments
 (0)