feat: Adds MCP_SSE to be filled from frontend (#7594)
* add mcp sse to copy field
* add MCP_SSE from frontend
* [autofix.ci] apply automated fixes
* refactor: reorder imports in mcp_component.py for consistency
* ✅ (mcp-server.spec.ts): refactor code to use consistent selector for sse_url textarea element in tests
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
This commit is contained in:
parent
67f744cdf2
commit
0ba8f6559c
4 changed files with 31 additions and 30 deletions
|
|
@ -68,17 +68,12 @@ test(
|
|||
|
||||
await page.getByTestId("tab_1_sse").click();
|
||||
|
||||
await page.waitForSelector(
|
||||
'[data-testid="anchor-popover-anchor-input-sse_url"]',
|
||||
{
|
||||
state: "visible",
|
||||
timeout: 30000,
|
||||
},
|
||||
);
|
||||
await page.waitForSelector('[data-testid="textarea_str_sse_url"]', {
|
||||
state: "visible",
|
||||
timeout: 30000,
|
||||
});
|
||||
|
||||
let sseURLCount = await page
|
||||
.getByTestId("anchor-popover-anchor-input-sse_url")
|
||||
.count();
|
||||
let sseURLCount = await page.getByTestId("textarea_str_sse_url").count();
|
||||
|
||||
expect(sseURLCount).toBeGreaterThan(0);
|
||||
|
||||
|
|
@ -122,17 +117,12 @@ test(
|
|||
|
||||
await page.getByTestId("tab_1_sse").click();
|
||||
|
||||
await page.waitForSelector(
|
||||
'[data-testid="anchor-popover-anchor-input-sse_url"]',
|
||||
{
|
||||
state: "visible",
|
||||
timeout: 30000,
|
||||
},
|
||||
);
|
||||
await page.waitForSelector('[data-testid="textarea_str_sse_url"]', {
|
||||
state: "visible",
|
||||
timeout: 30000,
|
||||
});
|
||||
|
||||
sseURLCount = await page
|
||||
.getByTestId("anchor-popover-anchor-input-sse_url")
|
||||
.count();
|
||||
sseURLCount = await page.getByTestId("textarea_str_sse_url").count();
|
||||
|
||||
expect(sseURLCount).toBeGreaterThan(0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue