Skip to content

Commit d66a777

Browse files
author
rocketraccoon
committed
feat(mcp-tools): add run tests using testplane
1 parent 903b60b commit d66a777

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/tools/attach-to-browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const attachToBrowserCb: ToolCallback<typeof attachToBrowserSchema> = async args
2020
const context = contextProvider.getContext();
2121

2222
if (!context.browser.isActive()) {
23-
return createSimpleResponse("No active browser session");
23+
return createSimpleResponse("Can not attach to browser using existing session options");
2424
}
2525

2626
return createSimpleResponse("Successfully attached to existing browser session");

src/tools/utils/attach-to-browser-schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export const attachToBrowserSchema = {
102102
})
103103
.describe("Session options")
104104
.optional(),
105+
pid: z.number().describe("Pid of webdriver process").optional(),
105106
})
106107
.describe("Attach to browser json object from console after --keep-browser testplane run"),
107108
};

test/tools/attach-to-browser.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ describe.only(
5353
},
5454
});
5555

56-
expect(true).toBe(true);
57-
5856
expect(result.isError).toBe(false);
5957
expect(result.content).toBeDefined();
6058

0 commit comments

Comments
 (0)