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:
Edwin Jose 2025-04-17 14:02:37 -04:00 • committed by GitHub
commit 0ba8f6559c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 31 additions and 30 deletions

View file

@ -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);