@cotestdev/mcp_playwright 0.0.47 → 0.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -93,7 +93,9 @@ const runScript = (0, import_tool.defineTabTool)({
|
|
|
93
93
|
const runner = import_ai_runner_fake.Runner.NewInstance(params.projectId, params.testId);
|
|
94
94
|
await runner.init(tab.page, tab.page.context(), params.params);
|
|
95
95
|
const result = await runner.runScript(params.testId, params.code);
|
|
96
|
-
|
|
96
|
+
const code = `// Returns the out parameters of the reusable test
|
|
97
|
+
const result = await runner.reuseTest('${params.testId}');`;
|
|
98
|
+
response.addCode(code);
|
|
97
99
|
response.addTextResult(`Out Parameters: ${JSON.stringify(result)}`);
|
|
98
100
|
}
|
|
99
101
|
});
|